HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Trigger Help

06-30-2003, 05:38 PM#1
Dark Azonik
Ok i need an answer fast cuz i got only 2 days to work on my map Tornado Tag cuz i want it to be released on RoC and TFT..

actually im making a kind of Waygate but you can set the waygate point to wherever the building to set the waygate is

the buildings are
-Portal (Waygate with different model)
-Set Portal Point(Beacon..its used to set the portal point like in the name....duh)

I made the Portal building have the Waygate abillity
My variables (2)
-SetWaypoint (Region Array)
-Waygate (Unit Array)

i got 2 triggers
1-SetVariables
Event-Time Elapsed in game is 0.00 seconds
Condition-None
Action-Set Waygate [[Point-value of portal)]=triggering unit
Action-Set Setwaypoint[[Point-Value of portal]]=Set Waypoint[[point value of portal]]

The next trigger is called Waygate Teleport
Event-A unit owned by player 1 (red)begins construction
condition-Unit type of constructing structure equal to Portal
Action=Neutral building -set triggering unit destination to center of Setwaypoint(0})
Action(another one)-Neutral Building-Enable Triggering unit

sadly this doesnt teleport to the place it should i worked like 5 hours on this (i suck on triggers) so please reply fast
06-30-2003, 10:57 PM#2
Dark Azonik
no one knows ?(bump)
07-01-2003, 03:55 AM#3
Hivemind
First we dont understand what u are doing the the point value of the waygate. Your setting it and then not using it anywhere.

You are enabling (trigering unit) which is the waygate. The waygate isnt the thing building the waypoint is it?

not sure begins contruction isnt bugged. Use finishes construction instead. Have a short build time if you want.

This line makes no sense to us at all....
Action=Neutral building -set triggering unit destination to center of Setwaypoint(0})

....is setwaypoint a region? If it is your not placing it anywhere. Not to mention moving a region has some problems and may not work for you.

Looks like you need to start over. Here is a couple good tutorials on basic triggering....

http://www.wc3campaigns.com/forums/s...ighlight=array

http://www.wc3campaigns.com/forums/s...threadid=13025

Its nice to see you trying to use arrays. You should learn how they work. They will realy help you. Not sure they are needed for this feature tho. Unless you are setting up a complex system with multiple waygates per player each with a seporate destinataion you shouldnt need them.







Now if you.ve gotten this far without throwing up your hands and saying "why dont you just tell me how to do it" here you go. The attached file should solve your problem nicely....
:ggani:
07-01-2003, 09:18 AM#4
Dark Azonik
no..im not setting it anywhere...its gonna teleport at the building called Set Waypoint..i need a way to detect when this building is contruscted..i know how but it doesnt work somehow

oh ya and the thing (o]) well it asked an index..so i was like wtf!!and typed 0 lol

edit:oh ya and the Setwaypoint is not a region..its a building but must work like a region...actually what ive been trying to do is when you enter in building ''Waypoint'' you get teleported to the building Set Waypoint if its not constructed then it wont work
07-01-2003, 09:29 AM#5
Dark Azonik
oh man !! i just tried ur map...all works like i wanted u rule!!!

edit:man i learned alot in triggers today..