Moving to a region with a chat command

Revengez

New Member
Reaction score
1
Here's my last question of the day.... I tried this out.

Trigger:
  • Tree One
    • Events
      • A unit enters Frog <Gen>
      • Player - Player 2 (Blue) types a chat message containing Frog as an exact match
    • Conditions
    • Actions
      • Trigger - Run Tree one 3 <Gen> ignoring conditions


Trigger:
  • Tree One 3
    • Events
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of item <gen>)
 

Holla.

New Member
Reaction score
14
You fool, you made two events, this means that your action will play if either of those events plays. Silly billy.
Use conditions right.
 

Revengez

New Member
Reaction score
1
I see so would this work?

Trigger:
  • Tree One
    • Events
      • Player - Player 2 (Blue) types a chat message containing Frog as an exact match
    • Conditions
      • (Frog <gen> contains (Triggering Unit)) Equal to True
    • Actions
      • Trigger - Run Tree one 3 <Gen> checking conditions
 

Revengez

New Member
Reaction score
1
This didn't work.

I don't know why.


Trigger:
  • Tree One
    • Events
      • Player - Player 2 (Blue) types a chat message containing Frog as an exact match
    • Conditions
      • (Frog <gen> contains (Triggering Unit)) Equal to True
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of item <gen>)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> This didn't work.

There is no triggering unit...


And, read the forum rules. Strongly recommended read. Especially the part about bumping your threads every 3 minutes!
 

Revengez

New Member
Reaction score
1
> This didn't work.

There is no triggering unit...


And, read the forum rules. Strongly recommended read. Especially the part about bumping your threads every 3 minutes!

It's been like 30 minutes each time.

Hmmmm.... All I could think of is triggering unit... What other condition should i use?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
There is no such condition.
Which calls for more triggering...

Set UnitGroup = Units owned by (Triggering player) (optionally matching some condition, like Matching unit is a Hero)
Pick every unit in UnitGroup and do
...whatever needs doing to Picked unit
Custom script: call DestroyGroup( udg_UnitGroup )
 

Revengez

New Member
Reaction score
1
I'm very confused.... Can you do a wc3 thing to show me? I'm not sure what to do at the Set Variable...
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Event:
- Player ... types a chat message ...
Conditions:
Actions:
... here would be the actions from above

The idea being that "types a chat message" doesn't give you any units to work with.
It only has "Triggering player" and the chat message.
As such, the actions find all units of interest of that player and do something.
 

Revengez

New Member
Reaction score
1
Trigger:
  • Tree One
    • Events
      • Player - Player 2 (Blue) types a chat message containing Frog as an exact match
    • Conditions
    • Actions
      • Set FrogPlayerGroup [1] = (Player Group((Owner of (Triggering Unit)))
      • Unit Group - Pick Every Unit in (Units in Frog <gen>) and do (Unit - Move Triggering unit) instantly to (Center of item <gen>))
      • Unit - Move (Triggering unit) instantly to (Center of item <gen>)
      • Custom script: call DestroyGroup( udg_FrogPlayerGroup )


Would this work? I'm pretty sure the Unit Group line won't work
 
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