RhenaudTheLukark / CreateYourFrisk

Rhenaud The Lukark's Unitale fork
GNU General Public License v3.0
135 stars 57 forks source link

DEBUG function doesn't work when called with [func]. #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

Example:

text_var = "The text[func:Test]"
function Test()
  DEBUG("Debugging text.")
end

Debug won't display in this or similar cases.

CYF version: 1.0 for Windows 64-bit.

RhenaudTheLukark commented 7 years ago

May I have more information about what you did, and which text object got that [func]?

Text objects launch functions in the script they are created in, te main arena text launches its functions from the Encounter script and monster texts launch their functions in their corresponding enemy scripts as a reference.

Check if you followed that pattern.

ghost commented 7 years ago

Sorry for my inattention. I realized my mistake. The function was in a wrong script.