Event Response - Selecting Unit

Crazy-Host

New Member
Reaction score
0
Can someone help me?
What Event Response do u put for "Selecting a Unit"?
Select Talk
Events
Player - Player 1 (Red) Selects a unit
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Whats the event response? ---> (Triggering unit) Equal to Villager (Female) 0003 <gen>
Then - Actions
Floating Text - Create floating text that reads *Sniff* A tragedy... above (Picked unit) with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to Child (2) 0005 <gen>
Then - Actions
Floating Text - Create floating text that reads "Can you play with ... above (Picked unit) with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to Villager (Male) 0002 <gen>
Then - Actions
Floating Text - Create floating text that reads "How may I help you... above (Picked unit) with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
Else - Actions
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Event
Issues target order
Condition
Target is (Unit)

Ah, I don't use GUI..
But something like that should work.
 

Seprest

New Member
Reaction score
15
I believe triggering unit is used, even during a player event, I think if a unit is directly mentioned in the event it becomes the triggering unit.

I could be dead wrong tho:D


I would use
Trigger:
  • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Picked unit) Equal to YourUnit
        • Then - Actions
          • Do your floaty texts
        • Else - Actions
          • Do nothing
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Wha-?
Triggering unit is not used for selection.

For "IssueTargetOrder", yes, Triggering Unit is used.
If you want Player, GetOwningPlayer(GetTriggerUnit())

If you're talking about the target of the selection.
Shouldn't it be GetTargetUnit()?

TriggerUnit would be the one being given the Order.
 

Seprest

New Member
Reaction score
15
I'm pretty sure because I've used that event response for selecting a unit. Enter this in and it will 100% work

Trigger:
  • test
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)


:shades:
 

Bogrim

y hello thar
Reaction score
154
"Use 'Event Response - Triggering Unit' to refer to the unit being selected or deselected."

From the event's own description.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top