Neutril Hostile's food

sionts

New Member
Reaction score
0
Neutral Hostile's food

AceHart, i took a look at the TD tutorial you sent me and followed the instructions accept mine has "neutral hostile" instead of "player 12"


Code:
Events
    Player - Neutral Hostile's Food used becomes Less than 1.00
Conditions
Actions
    Set level = (level + 1)
    Wait 5.00 seconds
    Trigger - Run Spawn <gen> (checking conditions)

Accept its not running the trigger "Spawn" Well i think its not running the trigger. I think it has something to do with the Event.

This is my spawning trigger, but i dont really see anything wrong with it.
Code:
Spawn

Events
Conditions
Actions
    Unit - Create Amount[level] Unit[level] for Neutral Hostile at (Center of Spawn[level]) facing Default building facing degrees
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Well I think it's not running the trigger.

Add an action that tells you:
Game - Display to (all players) the text: "some text, like the name of the trigger."


Event:
- A unit dies
Conditions:
- Owner of (Dying unit) equal to Neutral Hostile
Actions:
- Game - Display to (all players) the text: String(Food used by Neutral Hostile)


And have a look, to see if there's anything interesting you get from this.


Actually, if your "spawn" trigger is only that one line, why not include it in the first trigger?
 

sionts

New Member
Reaction score
0
the Messages were:
50
49
48
47
46

I have other neutral hostiles on the field and other players wont kill them all straight away because they are too hard.

What other Events could i use?
 
D

Dino.pl

Guest
You can do something like:
Code:
events
    a unit dies
conditions
    owner of triggering unit equal to neutral hostile
    number of living units of type Unit[level] owned by neutral hostile equal to 0
actions
    (your actions here)
 

sionts

New Member
Reaction score
0
Ahh, what comparison for
>number of living units of type Unit[level] owned by neutral hostile equal to 0
 

sionts

New Member
Reaction score
0
lol, anyway i still cant get
>number of living units of type Unit[level] owned by neutral hostile equal to 0
Closest i got is
(Number of living Unit[level] units owned by Neutral Hostile) Equal to 0
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Or, put all units you create for those waves in a unit group variable.

And add a test "(Dying unit is in Group) equal to true" to some "a unit dies" trigger that will replace the "food trigger".
And remove it from the group once dead.
And a simple "If number of units in Group equal to 0"...
 
D

Dino.pl

Guest
sionts said:
lol, anyway i still cant get
>number of living units of type Unit[level] owned by neutral hostile equal to 0
Closest i got is
(Number of living Unit[level] units owned by Neutral Hostile) Equal to 0
That's what we're looking for XD (I was writing it w/o WE opened).
 
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