- Joined
- Aug 31, 2004
- Messages
- 4
I'm trying to call shared utility functions from multiple custom text triggers. I did this successfully when I just added the functions to the war3map.j file, but now I'm trying to implement the same features in a worldeditor compatible form by breaking up the code into custom text triggers.
Worldeditor complains whenever I reference any function (other than natives) that does not appear in the same custom text trigger. I am defining the utility functions in custom text triggers which appear before the triggers which reference them, so this is not a forward reference problem.
This is for a ROC map. TFT maps allow for a single common custom text section, I'm guessing that is where utility functions are expected to be put.
Am I just out of luck on sharing utility functions in an ROC map?
Thanks.
Worldeditor complains whenever I reference any function (other than natives) that does not appear in the same custom text trigger. I am defining the utility functions in custom text triggers which appear before the triggers which reference them, so this is not a forward reference problem.
This is for a ROC map. TFT maps allow for a single common custom text section, I'm guessing that is where utility functions are expected to be put.
Am I just out of luck on sharing utility functions in an ROC map?
Thanks.