• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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

  • jass.j
    475.5 KB · Views: 12
Level 2
Joined
Aug 27, 2022
Messages
9
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

  • relevant code directly.txt
    33.8 KB · Views: 7
Level 44
Joined
Feb 27, 2007
Messages
5,567
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?
 
Level 2
Joined
Aug 27, 2022
Messages
9
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
 
Level 44
Joined
Feb 27, 2007
Messages
5,567
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:
Level 2
Joined
Aug 27, 2022
Messages
9
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.
Top