Warcraft III resources & community, 2003–2006 · archived

Maze Map

19 posts
#1

Maze Map

I am making a maze map and i want a trigger so that every time someone steps of the path they die.

But i treid to it with regoins but there must be an easy-er way to do it, instead of placing regoins at every single point of the map!

Credit to whoever helps me!
#2
I already posted this on another topic, but I'll post it again.
Lava Kill
    Events
        Time - Every 0.12 seconds of game time
    Conditions
    Actions
        Set tempGroup = (Units of type Runner)
        Unit Group - Pick every unit in tempGroup and do (Actions)
            Loop - Actions
                Set tempPoint = (Position of (Picked unit))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is alive) Equal to True
                        Or - Any (Conditions) are true
                            Conditions
                                (Terrain type at tempPoint) Equal to Dungeon - Lava
                    Then - Actions
                        Unit - Kill (Picked unit)
                    Else - Actions
                Custom script:   call RemoveLocation(udg_tempPoint)
        Custom script:   call DestroyGroup(udg_tempGroup)

I use the variables tempPoint and tempGroup because it removes memory leaks, which cause lag. Make sure you also use the custom scripts to delete the variable values.
#3

Thanks

Thanks for that but i am no pro at doing triggers so could you please make the trigger and export it as trigger data thing and email it to me at: [email protected]

Cheers
#4
Thats a basic trigger, you shouldent just give up from the beginning but try atleast before asking other people to make your map...
#5
Rage he knows how too do it he was jus asking is there a way too make it easier :P

Los_Tacos: I dont understand how this works...
When i made my maze map i did LOTS of regions...
Please explain what you said more >.<
#6
What is there to explain? The trigger is right in front of you, all you have to do it copy it. I'll show you where you can find each action.
Lava Kill
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
Set tempGroup = (Units of type Runner) Set variable
Unit Group - Pick every unit in tempGroup and do (Actions) Unit group - Pick every unit in group and do actions
Loop - Actions
Set tempPoint = (Position of (Picked unit)) Set variable
If (All Conditions are True) then do (Then Actions) else do (Else Actions) If/Then/Else
If - Conditions
((Picked unit) is alive) Equal to True Boolean
Or - Any (Conditions) are true Or - Any conditions are true
Conditions
(Terrain type at tempPoint) Equal to Dungeon - Lava Terrain Type Comparison
Then - Actions
Unit - Kill (Picked unit) Unit - Kill
Else - Actions
Custom script: call RemoveLocation(udg_tempPoint) Custom script
Custom script: call DestroyGroup(udg_tempGroup) Custom script
#7
ahh ok now i understand ^^
But if i was too do this on my map, if you have played it you would notice theres frogs hidden off the paths, You gota find em all too get a diffrent ending >.< how would you do this?

I surpose you could make a new tile which looks the same but rename it, but i dunno how too do that stuff :P
#8
I would just use regions to do that, since there aren't very many of them.
#9
Sweet this helps me out too. :D I got it to work perfectly.
#10

oOK

oK, I tryed this heaps but i was always stumped on this part:
Unit Group - Pick every unit in tempGroup and do (Actions) Unit group - Pick every unit in group and do actions
Loop-actions

Now my problem is that (actions) part it just comes up red so i can't click 'ok' and then i click on the red actions and try and find Loop-action.

Please help me! and please don't say i shouldn't even do this map because everyone has to start somewhere!

Thanks,
sam
#11
You must select "Unit Group - pick every unit in group and to multiple actions."
#12

varaibles

what type of variable is the temppoint?

Sorry about all of questions!

Thanks,
sam
#13
well i think its easier when i do it wit regions but thats me ^^
#14
I just use regions in my mazes, offcoure I dont make the regions myself but get other people to do it 8)
#15

Ok..

Ok i get it with the varaible, but another problem!
arrrrgghhh Problems!!!!!!!!!!!

Anyway the custom script does not work because it says
invaild arugment type(interger)

this is the script
call DestroyGroup(udg_tempgroup)