• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Trigger

Status
Not open for further replies.
Level 4
Joined
Feb 19, 2008
Messages
61
If some one could post a trigger of how to make a Unit teleport from one place to another without them choosing to teleport kinda like a booby trap??
 
(Center of (REGION)) leaks, so you must set it to a variable.

Fill in the values, they are probably quite obvious. xD

  • MoveToRect
    • Events
      • Unit - A unit enters (REGION OF TRAP)
    • Conditions
      • <Conditions>
    • Actions
      • Set TrapRegion = (Center of (REGION YOU WANT THE UNIT TO MOVE TO))
      • Unit - Move (Triggering Unit) instantly to TrapRegion <gen>
      • Custom Script: call RemoveLocation(udg_TrapRegion)
Sorry if some of this might be a little confusing or if some of these functions aren't exactly correct, I did this off of memory, not WE because it takes too long to open. xP
 
Level 15
Joined
Mar 9, 2008
Messages
2,174
Simple. Those are basics. But Ive learned the triggers by myself i didnt have a forum to talk to. Oh and by the way PurgeandFire111 is right.
But you forgot the turn off this trigger action. Usualy boobytraps trigger only once.
 
Level 2
Joined
Mar 20, 2008
Messages
33
  • Teal Goal to Grey Spawn
    • Events
      • Unit - A unit enters Teal Goal <gen>
    • Conditions
    • Actions
      • Set TrapRegion = (Center of Gray Spawn <gen>)
      • Unit - Move (Triggering unit) instantly to TrapRegion
      • Custom script: call RemoveLocation(udg_TrapRegion)
This is precisely How my trigger looks, but it dont work. When the Units enters the Teal Goal region, they just walk back to where they came from. Also, is RemoveLocation a Variable?
 
Level 2
Joined
Mar 20, 2008
Messages
33
They just keep going from Teal Goal and back to Teal Spawn, where they came from...
 
Level 2
Joined
Mar 20, 2008
Messages
33
My problem now, is that when the creeps spawn, they just kill my towers, and 20% of the creeps just walk around for a while, and then they walk into my goal region.

Please help me!
 

Attachments

  • noget.w3x
    102.5 KB · Views: 49
Last edited:
Level 19
Joined
Aug 24, 2007
Messages
2,888
Triggers seem fine unless we dont count the leaks
anyway
problem is goal regions are too small for ordering them to move center
they can return without touching (Idk why they return back) and attack towers
and creeps will attack towerss if they have enough range on creation
dont allow players to build too near of spawn location

make regions bigger or order creeps to move the edges (with offset)
 
Level 2
Joined
Mar 20, 2008
Messages
33
I have tried to make them bigger, but still, the same thing happens. How do i make them just touch the edges of the region? I can use a Point with offset, but then there just come a (0.00, 0.00). does it need a value?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
(0.00, 0.00) are (X,Y), which are coordinates of the map. Remember though, that if you choose a point of the region, the offset will probably be...
((the coordinates of location inside the region)+(offset)).
That's my theory, at least. I never used coordinates with GUI.
 
Level 2
Joined
Mar 20, 2008
Messages
33
please! i cant come further wirh my map before i figure this out...

I really need Help!!!
 
Last edited by a moderator:
Level 2
Joined
Mar 20, 2008
Messages
33
Then i have some questions.
1.) How do i give the owner sight ower the area?
2.) What is aquireration?
3.) What is KI?

I know that was kinda nooby, but i am a noob at this, i just began world editing a couple of mounths ago, so...
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
Try adding some conditions to those triggers...

  • MoveToRect
    • Events
    • Unit - A unit enters (REGION OF TRAP)
    • Conditions
    • Region - Unit Entering (REGION OF TRAP) = to (Unit owned by Player 1 Red)
    • Actions
    • Set TrapRegion = (Center of (REGION YOU WANT THE UNIT TO MOVE TO))
    • Unit - Move (Entering Unit) instantly to TrapRegion <gen>
    • Custom Script: call RemoveLocation(udg_TrapRegion)
If you're using a trigger that involves "Triggering Unit" along with that trigger, lets say...an AI trigger. Then it will conflict and do different things as long as they happen at the same time.

EDIT: Why did it change from Warcraft33 asking the questions to Ztoph? o_O
 
Last edited:
Level 2
Joined
Mar 20, 2008
Messages
33
Yea! It worked finally! + rep to you, En_Fuego.
Now, i just have a new question. How can i give a tower the bounce ability?
 
Level 11
Joined
Dec 31, 2007
Messages
780
object editor - upgrades - night elves - Upgrade Moon Glaive

if you want it to bounce even more then set 3 4 or 5 upgrades on the same and make the player owner of the tower to upgrade it... so the shot will bounce more times

(if you want it to varie) if not... just set the amount of bounces

EDIT: you need to add this ability to the tower in order to have the bounce effect
 
Level 2
Joined
Mar 20, 2008
Messages
33
I figured it out, searched around the forum. Doesnt even need the abillity..
 
Last edited:
Status
Not open for further replies.
Top