Raised This Month: $ Target: $400
 0% 

Trying to Understand #define Macros values in War3TFT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zXCaptainXz
Member
Join Date: May 2017
Old 09-02-2022 , 16:22   Re: Trying to Understand #define Macros values in War3TFT
Reply With Quote #6

Like I said above, each task needs a specific ID in order to check if it exists/remove it. If you define TASK_LIGHTING as 960, then tasks 961,962,963...992 will be the tasks responsible for creating lighting for players number 1,2,3...32. It's just an assigned ID, changing it won't affect the lighting or the function execution at all, as long as you make sure that no other constant is defined within 32 more or 32 less integers. Say you have another task defined at 950, then tasks 961(960+1)->982(950+32) will be shared between 2 functionalities. So when you try to remove lighting for a player, you accidentally remove say sound effects for another.
If it's still unclear at this point, just take my word for it and don't touch that file, best case scenario nothing will change, worst case you will break that plugin.
zXCaptainXz is offline
 



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

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

Forum Jump


All times are GMT -4. The time now is 15:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode