Triggering Problems

Holygiant

Active Member
Reaction score
1
Okay, I'm trying to do that sheep-tagish trigger where when you attack the imprisoned unit, it creates a new unit.
But I want it to make the unit only when I attack a certain type of unit.
However, it isn't instantly in existence so I can't just select it.

Here's my current trigger:
Events
Unit - A unit owned by Player 1 (Red) Is attacked
Conditions
((Attacked unit) is Undead) Equal to True
((Attacking unit) is A peon-type unit) Equal to True
Actions
Unit - Create 1 Student for Player 1 (Red) at (Center of Region 001 <gen>) facing Default building facing degrees


Note: Student is a custom unit.
Another Note: I forgot what the code for the blue trigger thing was, sorry.
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
really easy
your prob is that you dont scroll down
the category of the triggers you're using are boolean comparisons i think
you want to have unit types, it's in alphatbetical order so just scroll near the bottom until you find unit type comparisons, then just fill in the parts you want
here's the trig
Code:
Untitled Trigger 002
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Sheep
        (Unit-type of (Attacked unit)) Equal to wisp
    Actions
        Unit - Create 1 Student for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
when you write your post, there's a number sign that looks like this #
thats the thing that makes it a code, it's near the top of the box you type in for posts
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top