Jump to content
  • 0
Syreldar

[LUA]DEFINE function

Question

Hi all,

 

Since i am a very curious programer,  the day i was able to programing in C++ , i checked all the differences between C++ and LUA.

 

Recently in those months, i've checked YMIR's locale, and i saw something quests adding DEFINE functions before the quest start.

 

DEFINE functions can be used as a global variable, it's very, very useful.

 

The question is: Why when i recall DEFINE function in a quest it gives me error-output of the quest-compiler?

 

Script:

DEFINE NPC 20091
quest test begin
state start begin
when NPC.chat."Test" begin
say_title(mob_name(NPC))
say("It should work properly.")
end
end
end

 

QC error:

Err: must start with quest

Sorry for the script indentation, forum doesn't indent my script :/

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

You have to use pre_qc.py, because qc can't handle it.

  • Love 1

Share this post


Link to post
  • 0

You have to use pre_qc.py, because qc can't handle it.

 

I see.. thanks bro.

 

 

#Closerequest

Share this post


Link to post
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.