UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.14k stars 217 forks source link

The index values in `for` operator can be resolved as game objects. #1250

Closed VladiStep closed 7 months ago

VladiStep commented 1 year ago

Describe the bug

I just encountered that in "gml_GlobalScript_scr_jevil_check" code entry of Deltarune 1&2. for (var k = obj_sneo_friedpipis; k < obj_pipisFireworkGenerator; k++) But for (var i = 0; i < 6; i += 1)

image

Reproducing steps

  1. Open "gml_GlobalScript_scr_jevil_check" of Deltarune Chapter 1&2.

Setup Details

  1. UTMT version - https://github.com/krzys-h/UndertaleModTool/commit/b0000b4ff904ed653c040a938635a175ce9bc774
Jacky720 commented 7 months ago

This is because self.k is used as a Kris actor object in a Chapter 1 cutscene. Is there a way to make that resolution object-specific?