[General] world editor trigger and ai script don't work

Level 2
Joined
Dec 23, 2025
Messages
5
Hi, I am one of the new members of hive workshop who is South Korean.
Nice to meet you.
I have question about world editor trigger and ai script because I made my own campaign map which has made triggers and ai scripts.
However, any triggers and ai scripts don't work maybe I have made wrong triggers and ai scripts.
Anyway, i had checked it which was true or not in classic version but same bugs occurred.
In addition, third-party editors are not working on Warcraft 3 Reforged latest version.
So, how should I do?
I wish to make my own Warcraft 3 campaign map but there are no explanations about latest version of the world editor.
If there were Korean in Hive Workshop Community, please help to explain me about how to make triggers and ai scripts correctly in World Editor.
I apologize for writing incorrect English grammar.
I will be appreciated for somebody answers about how to make triggers and ai scripts correctly in World Editor on Warcraft 3 Reforged to me.
The attached file is my own campaign which is failed to run triggers and ai scripts.
 

Attachments

However, any triggers and ai scripts don't work maybe I have made wrong triggers and ai scripts.
You have few mistakes in your triggers
  • ai
    • Events
      • Map initialization
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • AI - Start campaign AI script for Player 1 (Red): war3mapImported\oxai classic.ai
The "(Triggering unit)" is only available to unit-related events. Map Initialization is not a unit event. As such, the condition for this event will never be true and so the AI will not be started.
I removed the condition, ran the map again and saw player 1's peasants harvesting lumber.

  • victory
    • Events
      • Unit - Grass Flower 0083 <gen> Dies
      • Unit - Snake Eye (Evil) 0082 <gen> Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
      • ((Unit-type of (Triggering unit)) Equal to Grass Flower) and ((Unit-type of (Triggering unit)) Equal to Snake Eye (Evil))
    • Actions
      • Cinematic - Send transmission to (All players) from Fiction Resistor 0084 <gen> named 픽션 저항자: Play No sound and display 정의는 죽지 .... Modify duration: Add 6.00 seconds and Wait
      • Game - Victory Player 7 (Green) (Show dialogs, Show scores)
The issue here is in the following condition:
  • ((Unit-type of (Triggering unit)) Equal to Grass Flower) and ((Unit-type of (Triggering unit)) Equal to Snake Eye (Evil))
It means that the dying unit must be both 'Grass Flower' unit AND 'Snake Eye' unit at the same time. But that can never be true as it is two different units.
You should use 'Or' condition instead of 'And' condition like this:
  • Conditions
    • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Or - Any (Conditions) are true
      • Conditions
        • (Unit-type of (Triggering unit)) Equal to Grass Flower
        • (Unit-type of (Triggering unit)) Equal to Snake Eye (Evil)

third-party editors are not working on Warcraft 3 Reforged latest version
As far as I know, most (if not all) 3rd party editors supported pre-Reforged WC3 versions and do not work for Reforged.
 
In addition, third-party editors are not working on Warcraft 3 Reforged latest version.
If you are using the latest version of Warcraft III Reforged, the normal World Editor is the only choice. It even includes some features that were only present in 3rd party WEs (you can use vJass or Lua scripts; Lua is a better option).

An older versions (pre-Reforged builds) might require 3rd party WEs (like JNGP) for map development.
 
I did, but ai and trigger are still not working. Could you explain more what to do for me?
because ai is still not attacking my orc base, of course, i didn't test victory trigger, but how to fix this problem and how to confirm about trigger and ai scripts are correct or wrong?
 

Attachments

Last edited:
This should work for you:
  • Victory
    • Events
      • Unit - Grass Flower 0083 <gen> Dies
      • Unit - Snake Eye (Evil) 0082 <gen> Dies
    • Conditions
      • (Grass Flower 0083 <gen> is dead) Equal to True
      • (Snake Eye (Evil) 0082 <gen> is dead) Equal to True
    • Actions
      • ...
This trigger will fire when either Grass Flower 0083 OR Snake Eye (Evil) 0082 dies, then in conditions it checks that both Snake Eye and Grass Flower are dead and if so, it will fire victory actions.

So for example, let's say that Snake Eye dies first. Then this Victory trigger will fire, but it will not pass its conditions, since Grass Flower is still alive at that point.
But when Grass Flower dies later, the Victory trigger will fire again and this time conditions will pass, as Snake Eye already died some time ago and now Grass Flower is also dead, so Victory actions will be executed.
 
Back
Top