Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-10-22, 07:15 AM   #1
Firesong
A Deviate Faerie Dragon
Join Date: Jan 2022
Posts: 19
Question How can I partition a Lua file?

Lua has a nice "require" system to allow long files to be partitioned. WoW disables this but I can see many addons have multiple files. What I can't work out is how they do it.

For example, if I have a behavoiur that is different for Tank and DPS, I'd love to be able to have the Tank stuff in a file called "Tank.lua"

How do I do this? Sorry if it's a really noob question.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How can I partition a Lua file?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off