[JASS] Can't automatically spawn enemies

Status
Not open for further replies.
Level 2
Joined
Aug 27, 2022
Messages
9
I wrote a jass that will automatically generate enemies and attack the designated area, but no enemies will be generated after entering the game.
I've double checked my jass, but still can't find the problem.
Can you help me find the problem, the jass I currently write is as attached.
 

Attachments

That .j file has 11 thousand lines. Is that the whole war3map.j? If so that's not helpful to figuring out the problem. You will need to show the relevant code directly because I'm not about to skim 11 thousand lines to understand what you're doing and where/why/how.
I'm sorry, I show the relevant code directly in txt. For completeness, I will not omit similar code in it.
 

Attachments

I'm not sure I understand why this is a JASS script; this just looks like a raw GUI trigger converted into JASS. This makes it annoying to understand because of all the unnecessary condition functions generated for if blocks and other stuff. What parts have you written/edited/added yourself?
 
I'm not sure I understand why this is a JASS script; this just looks like a raw GUI trigger converted into JASS. This makes it annoying to understand because of all the unnecessary condition functions generated for if blocks and other stuff. What parts have you written/edited/added yourself?
I added
Wavecreator_Func041001
Wavecreator_Func044001
Wavecreator_Func052001
Wavecreator_Func057001
call TriggerRegisterEnterRectSimple(udg_trigger40,udg_rect85)

I removed these and still can't trigger successfully
 
Is it possible for you to post the GUI version of the trigger before you converted it and made those changes? It's easier to understand what you're doing.
I looked over the functions you mentioned just now and I don't understand what you mean by "added", because all of those are just auto generated condition functions from GUI. More information/context/explanation is needed before I can help you.

I also see that these lines don't appear to be part of any function? Not sure what you're trying to do here (at the end of the .txt file):
JASS:
    set udg_trigger48=CreateTrigger()
    call TriggerRegisterTimerEventPeriodic(udg_trigger48,2)
    call TriggerAddAction(udg_trigger48,function Trig_WCurrentCreep_Actions)
 
Last edited:
Is it possible for you to post the GUI version of the trigger before you converted it and made those changes? It's easier to understand what you're doing.
I looked over the functions you mentioned just now and I don't understand what you mean by "added", because all of those are just auto generated condition functions from GUI. More information/context/explanation is needed before I can help you.

I also see that these lines don't appear to be part of any function? Not sure what you're trying to do here (at the end of the .txt file):
JASS:
    set udg_trigger48=CreateTrigger()
    call TriggerRegisterTimerEventPeriodic(udg_trigger48,2)
    call TriggerAddAction(udg_trigger48,function Trig_WCurrentCreep_Actions)
Thanks for your reply, I have figured out the problem and it has been improved.
 
Status
Not open for further replies.
Back
Top