How to summon units with command?

shady

Member
Reaction score
7
I need a triggered command, when player enters chat massage " example: -boss3 ", I want that player be teleported to choosen region also boss3 be teleported to choosen region. I can make unit be vulnerable, but can't teleport unit's. ( it was somethink like this:
Trigger:
  • Unit - Move (Triggering unit) instantly to (Center of Region 023 <gen>)
), but i can't make rest of the thinks. Please help. :)

This is my trigger for enter massage.
Trigger:
  • summon
    • Events
      • Player - Player 1 (Red) types a chat message containing -akama as An exact match
      • Player - Player 2 (Blue) types a chat message containing -akama as An exact match
      • Player - Player 3 (Teal) types a chat message containing -akama as An exact match
      • Player - Player 4 (Purple) types a chat message containing -akama as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -akama as An exact match
      • Player - Player 6 (Orange) types a chat message containing -akama as An exact match
      • Player - Player 8 (Pink) types a chat message containing -akama as An exact match
      • Player - Player 9 (Gray) types a chat message containing -akama as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -akama as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -akama as An exact match
      • Player - Player 12 (Brown) types a chat message containing -akama as An exact match
    • Conditions
    • Actions
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Add Events
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to Akasha <gen> the event (Player - (Player((Integer A))) types a chat message containing -akasha as An exact match)

Code:
Hero Initialization
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Set Hero[1] = Blood Mage 0003 <gen>
        Set Hero[2] = Mountain King 0002 <gen>
        Set Hero[3] = Archmage 0001 <gen>
        Set Hero[4] = Paladin 0000 <gen>

Code:
Point Initialization
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Set locationAkasha = (Center of Boss Akasha <gen>)

Code:
Akasha
    Events
    Conditions
    Actions
        Unit - Move Hero[(Player number of (Triggering player))] instantly to locationAkasha
This will move the player's hero instantly to the center of "Boss Akasha" (a region), when a player types "-akasha"
Variables used:
Hero - unit type - array? yes
locationAkasha - point type - array? no
 
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