Chat Message help

kgr313

New Member
Reaction score
0
For example : Event :player 1(red) types a chat message containing (-enter) as An exact match

Here is the scenerio: I want a hero belonging to any player walk into this region. When he is in this region and he types -enter, he will be transported to another region ( like teleporting)(making a rpg here ) Can you help me with this ? I'm new here
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
My guess is you're looking for something like this:
Trigger:
  • Teleport
    • Events
      • Player - Player 1 (Red) types a chat message containing -enter as An exact match
    • Conditions
    • Actions
      • Set TempUnitGroup = (Units in EnterHere <gen> owned by (Triggering player))
      • Set TempPoint = (Center of TeleportHere <gen>)
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to TempPoint
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_TempUnitGroup)

Where EnterHere is the region the heroes should be in, and TeleportHere is the region where the heroes will be teleported to.
 

kgr313

New Member
Reaction score
0
Hmm, where im new to this and all, can you tell me exactly what to do? Do i have to use custom script ?
 

jnZ

I
Reaction score
64
That custom script stuff is to avoid leaks. Google "WorldEditor leaks" if you want to know more.

Otherwise, specify your question because he already told you exactly what to do.
 

Kayoss666

Member
Reaction score
7
you can also do it using regions and not the unit group and you don't have to make a variable for the destined point.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
The unit group exists to allow more than one unit to teleport at a time. The point exists to prevent leaks.
 

kgr313

New Member
Reaction score
0
Oh....now i get it, thanks for the help. I finally got the hang of it. ^_^ Thank you guys so much. However something is wrong. I did everything you asked, but regardless of my position, i typed -enter(the command for going in) the units of other players still get telepoted in if they are at the current region
 

Kayoss666

Member
Reaction score
7
The unit group exists to allow more than one unit to teleport at a time. The point exists to prevent leaks.

regions do that too.

Oh....now i get it, thanks for the help. I finally got the hang of it. ^_^ Thank you guys so much. However something is wrong. I did everything you asked, but regardless of my position, i typed -enter(the command for going in) the units of other players still get telepoted in if they are at the current region

so do you only want the single unit to teleport or all units in the current region of the player typing -enter
 

Inflicted

Currently inactive
Reaction score
63
... but regardless of my position, i typed -enter(the command for going in) the units of other players still get telepoted in if they are at the current region

Trigger:
  • Set Temp_Group = (Units in ChillZone P1 <gen> owned by (Triggering player))

Add a Player Comparison.

so do you only want the single unit to teleport or all units in the current region of the player typing -enter
If you only want a particular unit to be moved, then you need some way of detecting that unit. If there is only one Hero per player you could have a Hero Array[] set which would allow you to make manipulation of units easier. Otherwise just check last entered unit for that player by setting Temporary variables when a unit enters range of the door or gate.
 
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