Trigger help!

Bladezor

You can change this now in User CP.
Reaction score
0
can I make a trigger that every night on the map all will get a buff/dot on the unit "survivor" and the unit must get a potion/antidote that can remove the buff/dot if thay not use the potion they will die when it becomes day. :)
 

njb013

New Member
Reaction score
0
Sure you can, one sec.

Use two triggers; one for daytime, one for nighttime.

Event - Game - Time of Day (Whatever you consider to be Dusk)
Conditions -
Actions - Add (Ability) to (survivor)

Event - Game - Time of Day (Whatever you consider to be Dawn)
Conditions -
Actions - If Item carried by (Hero) in Slot 1 (or 2, 3, etc.) Equal to (Potion) Then
Remove (Ability) from (survivor)
Else
Unit - Kill (survivor)

This way, the unit doesn't have to actually use the potion, just have it in their inventory. To make it remove the ability as soon as it's used, you'd have to configure that in the object editor somehow.
 

Bladezor

You can change this now in User CP.
Reaction score
0
Sure you can, one sec.

Use two triggers; one for daytime, one for nighttime.

Event - Game - Time of Day (Whatever you consider to be Dusk)
Conditions -
Actions - Add (Ability) to (survivor)

Event - Game - Time of Day (Whatever you consider to be Dawn)
Conditions -
Actions - If Item carried by (Hero) in Slot 1 (or 2, 3, etc.) Equal to (Potion) Then
Remove (Ability) from (survivor)
Else
Unit - Kill (survivor)

This way, the unit doesn't have to actually use the potion, just have it in their inventory. To make it remove the ability as soon as it's used, you'd have to configure that in the object editor somehow.

its not one (survivor). all player spawn with a (survivor) so then I need a variable, or?
 

Kayoss666

Member
Reaction score
7
Event - Game - Time of Day (Whatever you consider to be Dusk)
Conditions -
Actions -
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
Unit - Add Ability to (Picked unit)


Event - Game - Time of Day (Whatever you consider to be Dawn)
Conditions -
Actions -
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If Item carried by (Hero) in Slot 1 (or 2, 3, etc.) Equal to (Potion) Then
Remove (Ability) from (Picked Unit)
Else
Unit - Kill (Picked Unit)
 

Bladezor

You can change this now in User CP.
Reaction score
0
It worked, but all buildings and unit owned by the hero dies. :(
 

Bladezor

You can change this now in User CP.
Reaction score
0
Now I see! whats wrong.

I had, Item carried by (Picked unit). so how to make (Hero), all the heroes spawn up so I can't select one hero, same with the item. :)
 

Kayoss666

Member
Reaction score
7
Now I see! whats wrong.

I had, Item carried by (Picked unit). so how to make (Hero), all the heroes spawn up so I can't select one hero, same with the item. :)

all the heroes spawn up so I can't select one hero, same with the item. could you be a little more detailed please.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top