Hidden Units Problem

slayer

New Member
Reaction score
2
A simple trigger that hides all units within a region, and after a set amount of time the units should appear again (unhide), but they don't appear. The Conditions should be: All three Demon Gates is dead.
Why doesn't it work? What have I done wrong? :confused:

HideUnits
Events
Conditions
And - All (Conditions) are true
Conditions
(Demon Gate 0117 <gen> is alive) Equal to False
(Demon Gate 0116 <gen> is alive) Equal to False
(Demon Gate 0121 <gen> is alive) Equal to False
Actions
Unit Group - Pick every unit in (Units in hideall <gen>) and do (Unit Group - Add (Picked unit) to Hidden)
Set Hidden = (Last created unit group)
Unit Group - Pick every unit in (Units in hideall <gen>) and do (Unit - Hide (Picked unit))
Game - Display to (All players) the text: HELLO
Wait 10.00 seconds
Unit Group - Pick every unit in (Last created unit group) and do (Unit - Unhide (Picked unit))

I will of course +rep the one coming up with a solution to this problem ;)
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Maybe another unit group was created while the 10 second wait happened?
 

PrisonLove

Hard Realist
Reaction score
78
Code:
HideUnits

Events

Conditions
 And - All (Conditions) are true
 Conditions
 (Demon Gate 0117 <gen> is alive) Equal to False
 (Demon Gate 0116 <gen> is alive) Equal to False
 (Demon Gate 0121 <gen> is alive) Equal to False

Actions
 Set Hidden = (Units in hideall <gen>)
 Unit Group - Pick every unit in (Hidden) and do (Unit - Hide (Picked unit))
 Game - Display to (All players) the text: HELLO
 Wait 10.00 seconds
 Unit Group - Pick every unit in (Hidden) and do (Unit - Unhide (Picked unit))

try that
 

slayer

New Member
Reaction score
2
Code:
HideUnits

Events

Conditions
 And - All (Conditions) are true
 Conditions
 (Demon Gate 0117 <gen> is alive) Equal to False
 (Demon Gate 0116 <gen> is alive) Equal to False
 (Demon Gate 0121 <gen> is alive) Equal to False

Actions
 Set Hidden = (Units in hideall <gen>)
 Unit Group - Pick every unit in (Hidden) and do (Unit - Hide (Picked unit))
 Game - Display to (All players) the text: HELLO
 Wait 10.00 seconds
 Unit Group - Pick every unit in (Hidden) and do (Unit - Unhide (Picked unit))

try that

Nope. They still remain hidden :(
Any idea how to fix the conditions btw? They seems not to be working either.
 

PrisonLove

Hard Realist
Reaction score
78
Code:
HideUnits

Events

Conditions
 And - All (Conditions) are true
 Conditions
 (Demon Gate 0117 <gen> is alive) Equal to False
 (Demon Gate 0116 <gen> is alive) Equal to False
 (Demon Gate 0121 <gen> is alive) Equal to False

Actions
 [COLOR="Blue"][B]Unit Group - Pick every unit in (Units in hideall <gen>) and do (Unit Group - Add (Picked unit) to Hidden)[/B][/COLOR]
 Unit Group - Pick every unit in (Hidden) and do (Unit - Hide (Picked unit))
 Game - Display to (All players) the text: HELLO
 Wait 10.00 seconds
 Unit Group - Pick every unit in (Hidden) and do (Unit - Unhide (Picked unit))
 Custom Script: call DestroyGroup(udg_Hidden)


try it with the blue part instead then.
 

minikrampan

Ultra Cool Member
Reaction score
28
You should probably have an event that fires the trigger up.
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Dying unit) Equal to Demon Gate 0117 <gen>
                (Dying unit) Equal to Demon Gate 0116 <gen>
                (Dying unit) Equal to Demon Gate 0121 <gen>
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        (Demon Gate 0117 <gen> is Dead) Equal to True
                        (Demon Gate 0116 <gen> is Dead) Equal to True
                        (Demon Gate 0121 <gen> is Dead) Equal to True
            Then - Actions
                <your actions here>
            Else - Actions
                Do nothing

dunno really just guessing
 

slayer

New Member
Reaction score
2
You should probably have an event that fires the trigger up.
Yeah of course, stupid of me, the conditions works fine now, ty :p

But the hidden units remain hidden :banghead:
I'll attach the test map...
 

Attachments

  • HiddenUnits.w3x
    17.5 KB · Views: 134

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Put a destructible dies in playable map area for your event, then put minikramp's and Prison's together.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Ah... I see.. Ok your problem is they don't seem to be creating this unit group last. Some other unit group is being made while you're waiting. (I Think)
It's not classifying the unit group you want to use to unhide them right.
 
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