• 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.

Enemy Ai dosen't attack

Level 6
Joined
Aug 3, 2021
Messages
106
Hello everybody! Pekisa7 here again. Did you got tired of me. I didn't think so. I've recently as of today installed Warcraft 3 Deforged . Cause i had to because of my map required it. So i came here to ask why don't enemies on my map attack. I looked at Warseekers tutorial on youtube how to program Jass Ai but they still don't attack even though I followed instructions on Youtube on how to do it. Can someone help? Best regards from Pekisa7.
 
Hello everybody! Pekisa7 here again. Did you got tired of me. I didn't think so. I've recently as of today installed Warcraft 3 Deforged . Cause i had to because of my map required it. So i came here to ask why don't enemies on my map attack. I looked at Warseekers tutorial on youtube how to program Jass Ai but they still don't attack even though I followed instructions on Youtube on how to do it. Can someone help? Best regards from Pekisa7.
Provide your AI script please. Followed doesn't mean to the letter, because one typo is enough to break the entire script.
 
Level 6
Joined
Aug 3, 2021
Messages
106
Provide your AI script please. Followed doesn't mean to the letter, because one typo is enough to break the entire script.
 

Attachments

  • DemonGreenAI.ai
    3 KB · Views: 5
  • DwarfGray AI.ai
    3.9 KB · Views: 3
  • ElfTeal AI.ai
    3.5 KB · Views: 3
  • HumanBlack AI.ai
    3.3 KB · Views: 3
  • HumanBlue AI.ai
    3.9 KB · Views: 2
  • HumanBrownAI.ai
    3.6 KB · Views: 2
  • HumanDarkGreen AI.ai
    3.7 KB · Views: 2
  • HumanRedAI.ai
    3.8 KB · Views: 2
  • HumanVioletAI.ai
    3.8 KB · Views: 2
  • HumanWheatAI.ai
    3.6 KB · Views: 2
  • OrcOrangeAI.ai
    3.4 KB · Views: 2
Level 6
Joined
Aug 3, 2021
Messages
106
Since your scripts have the following line:
JASS:
call WaitForSignal()

Did you send a signal in your map for the AI to commence their attacks? Your map need to have the AI - Send Command (or something like that, check GUI triggers in AI category) for the attack to commence.
I did. When Arthas steps in the force field region. Thats the signal. Also i put the send commande triggers.
AI Command
Events
Unit - A unit enters ForceWallDiscovered <gen>
Conditions
(Entering unit) Equal to Arthas
(Clicked dialog button) Equal to DialogButtonArray[0]
GameOver Equal to False
Actions
AI - Send Player 17 (Wheat) the AI Command (0, 0)
AI - Send Player 12 (Brown) the AI Command (0, 0)
AI - Send Player 7 (Green) the AI Command (0, 0)
AI - Send Player 6 (Orange) the AI Command (0, 0)
AI - Send Player 7 (Green) the AI Command (0, 0)
AI Command 02
Events
Unit - A unit enters CityEntrance <gen>
Conditions
(Entering unit) Equal to Arthas
(Clicked dialog button) Equal to DialogButtonArray[0]
GameOver Equal to False
Actions
AI - Send Player 1 (Red) the AI Command (0, 0)
AI - Send Player 2 (Blue) the AI Command (0, 0)
AI - Send Player 16 (Violet) the AI Command (0, 0)
AI - Send Player 21 (Coal) the AI Command (0, 0)
AI - Send Player 11 (Dark Green) the AI Command (0, 0)
AI - Send Player 3 (Teal) the AI Command (0, 0)
AI - Send Player 9 (Gray) the AI Command (0, 0)
 
Last edited:
Level 6
Joined
Aug 3, 2021
Messages
106
This is an invalid condition given the event. Remove this condition.
What about this?
AI Command Hard 01
Events
Unit - A unit enters ForceWallDiscovered <gen>
Conditions
(Entering unit) Equal to Arthas
(Clicked dialog button) Equal to DialogButtonArray[1]
GameOver Equal to False
Actions
AI - Send Player 17 (Wheat) the AI Command (2, 3)
AI - Send Player 12 (Brown) the AI Command (2, 3)
AI - Send Player 6 (Orange) the AI Command (2, 3)
AI - Send Player 7 (Green) the AI Command (2, 3)
AI Command Hard 02
Events
Unit - A unit enters CityEntrance <gen>
Conditions
(Entering unit) Equal to Arthas
(Clicked dialog button) Equal to DialogButtonArray[1]
GameOver Equal to False
Actions
AI - Send Player 1 (Red) the AI Command (2, 3)
AI - Send Player 2 (Blue) the AI Command (2, 3)
AI - Send Player 16 (Violet) the AI Command (2, 3)
AI - Send Player 21 (Coal) the AI Command (2, 3)
AI - Send Player 11 (Dark Green) the AI Command (2, 3)
AI - Send Player 3 (Teal) the AI Command (2, 3)
AI - Send Player 9 (Gray) the AI Command (2, 3)
 
Level 6
Joined
Aug 3, 2021
Messages
106
Did you even test it after the change?

Should be running properly unless something else that is not being shown here causing things to break.
I tested the map they still don't attack. I reverted to patch 1.31 because deforged really bugs .
 
Level 6
Joined
Aug 3, 2021
Messages
106
1 - learn how to paste your triggers
2 - are you even certain that the trigger runs??? Try printing out some message such as "Trigger X successfully ran" in the actions to see if it gets past the conditions
I tested the map again. Maybe they do try and attack. It just kicks me out of the game . When they have enough army to attack. Because the patch 1.31 can't procces that much. But deforgerd is buggy and broken so i am not coming back to that.
 
Level 6
Joined
Aug 3, 2021
Messages
106
1 - learn how to paste your triggers
2 - are you even certain that the trigger runs??? Try printing out some message such as "Trigger X successfully ran" in the actions to see if it gets past the conditions
Should i add on hard ai like diffulty equel to hard or something like that? Because its on hard difficulty or how does that work?
AI Command Hard 01
Events
Unit - A unit enters ForceWallDiscovered <gen>
Conditions
(Entering unit) Equal to Arthas
GameOver Equal to False
Actions
AI - Send Player 17 (Wheat) the AI Command (2, 3)
AI - Send Player 12 (Brown) the AI Command (2, 3)
AI - Send Player 6 (Orange) the AI Command (2, 3)
AI - Send Player 7 (Green) the AI Command (2, 3)

AI Command Hard 02
Events
Unit - A unit enters CityEntrance <gen>
Conditions
(Entering unit) Equal to Arthas
GameOver Equal to False
Actions
AI - Send Player 1 (Red) the AI Command (2, 3)
AI - Send Player 2 (Blue) the AI Command (2, 3)
AI - Send Player 16 (Violet) the AI Command (2, 3)
AI - Send Player 21 (Coal) the AI Command (2, 3)
AI - Send Player 11 (Dark Green) the AI Command (2, 3)
AI - Send Player 3 (Teal) the AI Command (2, 3)
AI - Send Player 9 (Gray) the AI Command (2, 3)
 
Level 6
Joined
Aug 3, 2021
Messages
106
AI - Send Player 1 (Red) the AI Command (2, 3)

is there a reason to use (2, 3) ?

Try with (0, 0) -> AI - Send Player 1 (Red) the AI Command (0, 0)
Oh... okay . Thank you. Is there no need to put difficulty equel to hard or something like that?
 
Top