Guide - Mazes

Axe.killer

New Member
Reaction score
24
Actions: Unit group - pick every unit of type <MAZER>001 gen and do mulitple actions.
If/Else:
Event:
Terrain at positon of Picked unit is equal to Lorderon grass
Action: Kill unit
Comment:some where here set the movement speed to slow. So they cant cut corner

Else : do nothing
 

Im_On_56k

Hm...
Reaction score
116
Use this it doesn't lag...as i posted before.


Code:
Walk off path
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Civilian) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Terrain type at (Position of (Picked unit))) Equal to Ashenvale - Grassy Dirt
                    Then - Actions
                        Unit - Kill (Picked Unit)
                    Else - Actions
        Custom script: call DestroyGroup(GetLastCreatedGroup())
 
D

Decapatater

Guest
Code:
Walk off path
    Events
        Time - Elapsed game time is 0.05 seconds
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Player) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava
                    Then - Actions
                        Unit - Kill (Picked unit)
                    Else - Actions
                        Custom script:   call DestroyGroup(GetLastCreatedGroup())
Its not working for me... :banghead: :(
 
D

Decapatater

Guest
I just tried im_on_56k's kill on contact trigger again and it killed the creeps...

Code:
Ghoul
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Ghoul) and do (Actions)
            Loop - Actions
                Set var1 = (Picked unit)
                Custom script: call DestroyGroup(GetLastCreatedGroup())
                Unit Group - Pick every unit in (Units within 80.00 of (Position of var1) matching ((Unit-type of (Matching unit)) Equal to Civilian)) and do (Actions)
                    Loop - Actions
                        Set var2 = (Picked unit)
                        Unit - Kill (var2)                       
                        Custom script: call DestroyGroup(GetLastCreatedGroup())
Here is what I have on my map:

Code:
Creep1 kill
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type creep1) and do (Actions)
            Loop - Actions
                Set var1 = (Picked unit)
                Custom script:   call DestroyGroup(GetLastCreatedGroup())
                Unit Group - Pick every unit in (Units within 20.00 of (Position of var1)) and do (Actions)
                    Loop - Actions
                        Set var2 = (Picked unit)
                        Unit - Kill var2
                        Custom script:   call DestroyGroup(GetLastCreatedGroup())
 

Jindo

Self
Reaction score
463
between (position of (var1)) and and do you forgot this part:

Code:
matching ((Unit-type of (Matching unit)) Equal to Civilian))
i think that should work

~Jindo
 
S

Starlite

Guest
Okay so I looked through all of WEU and coudlnt find the terrain type. It just so happens the terrain-type comparison DOES NOT exist in WEU only in normal WE. :banghead:
 
H

hadha

Guest
a few regions

well my map is almoast done and i got like.. 156 regions ? :p
and yes ive not made them small.. anway..
should u make one and one trigger for that or
should i just:

Event: unit enter region 1
unit enter region 2
unit enter region 3
unit enter region 4

Action: kill triggering unit

? or does that work at all ? :p
 

phyrex1an

Staff Member and irregular helper
Staff member
Reaction score
447
hadha said:
well my map is almoast done and i got like.. 156 regions ? :p
and yes ive not made them small.. anway..
should u make one and one trigger for that or
should i just:

Event: unit enter region 1
unit enter region 2
unit enter region 3
unit enter region 4

Action: kill triggering unit

? or does that work at all ? :p
That will work, a trigger can have as many (or few) event as you want.
 

Pyromancer

New Member
Reaction score
16
could you give me a link to that prison escape map, i coulnt find it.

also, great tut. it should be in the user submitted, or advanced.
 

Jindo

Self
Reaction score
463
prison escape hmm?

I dont know any where that you can download it.

I found it on europe gateway on bnet.

(it dates back to may 2003 :eek: )

good luck finding it :).

~Jindo
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
Hey Jindo. I just wanted to ask something about the kill the unit when he touches the terrain trigger. When I did a leak check, it said there was a "Point" leak in the trigger. And since it's leaking every .05 seconds it would make the map very very very very laggy in just 1 minute. Anyway to fix this? I'm no good at custom scripts. Thanks in advanced.
 

Jindo

Self
Reaction score
463
hmm, I pretty suck at fixing leaks, maybe if it's changed to every second or something.

btw, a trigger to remove corpses reduces lag an enormous amount :).

Hope this helps.

~Jindo
 

Jindo

Self
Reaction score
463
I myself, do not understand how to do something like that, but if you search, there's like 1000 people who asked this and it got answered (thank god you didn't start a new thread).

I'll find some links about how to do that and put it on the tut.

~Jindo
 
H

h3r1n6

Guest
Jindo said:
I myself, do not understand how to do something like that, but if you search, there's like 1000 people who asked this and it got answered (thank god you didn't start a new thread).

I'll find some links about how to do that and put it on the tut.

~Jindo

Jindo said:
I myself, do not understand how to do something like that, but if you search, there's like 1000 people who asked this and it got answered (thank god you didn't start a new thread).

I'll find some links about how to do that and put it on the tut.

~Jindo

If you watch the units closely you see how it is done, and it is not that hard to copy :).
Removing the leaks in the trigger was harder for me.

Here is the trigger I use for my map (Im from Germany, so there are some German words, but the Editor isnt that much localised, so you should be able to understand it)


Code:
Slide
    Ereignisse
        Zeit - Every 0.01 seconds of game time
    Bedingungen
    Aktionen
        Set unitgrp[0] = (Units of type Paladin)
        Einheitengruppe - Pick every unit in unitgrp[0] and do (Actions)
            Schleifen - Aktionen
                Set unitpos[0] = (Position of (Picked unit))
                If (((Terrain type at unitpos[0]) Gleich Eiskrone-Gletscher - Eis)  then do (Einheit - Move (Picked unit) instantly to (unitpos[0] offset by 4.00 towards (Facing of (Picked unit)) degrees)) else do (Do nothing)
                Custom script:   call RemoveLocation (udg_unitpos[0])
        Custom script:   call DestroyGroup(udg_unitgrp[0])

Note: This trigger will let you slide straight, without beeing able to controll. And you need unitpos[] and unitgrp[] as variables.


To make your units able to skate on the ice you need this one:

Code:
Skate
    Ereignisse
        Einheit - A unit Erhält einen auf einen Punkt zielenden Befehl
    Bedingungen
        (Terrain type at (Position of (Triggering unit))) Gleich Eiskrone-Gletscher - Eis
        (Owner of (Triggering unit)) Ungleich Spieler 12 (Braun)
    Aktionen
        Set Targeted[0] = (Target point of issued order)
        Einheit - Move (Triggering unit) instantly to (Position of (Triggering unit)), facing Targeted[0]
        Custom script:   call RemoveLocation(udg_Targeted[0])



If you need some translation let me know


Btw: nice tutorial, it inspired me to do some boss levels in the escape im working on
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Sunday!
    +1
  • The Helper The Helper:
    I will be out of town until Sunday evening
    +1
  • The Helper The Helper:
    I am back! Did you miss me LOL
    +1
  • jonas jonas:
    where did you go?
  • The Helper The Helper:
    Jefferson TX on a Paranormal Investigation of a haunted bed and breakfast - I got some friends that are paranormal investigators and they have an RV and do YouTubes
    +1
  • The Helper The Helper:
    It was a lot of fun. The RV was bad ass
  • jonas jonas:
    That sounds like fun!
    +1
  • The Helper The Helper:
    it was a blast!
  • The Helper The Helper:
    I am going to post the Youtube of the investigation in the forums when it is ready
    +1
  • jonas jonas:
    cool!
  • vypur85 vypur85:
    Sounds cool TH.
  • tom_mai78101 tom_mai78101:
    I was on a Legend of Zelda marathon...
  • tom_mai78101 tom_mai78101:
    Am still doing it now
    +1
  • jonas jonas:
    which one(s) are you playing?
  • jonas jonas:
    I played a little bit of the switch title two weeks ago and found it quite boring
  • The Helper The Helper:
    just got back from San Antonio this weekend had the best Buffalo Chicken Cheesesteak sandwhich in Universal City, TX - place was called Yous Guys freaking awesome! Hope everyone had a fantastic weekend!
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • The Helper The Helper:
    We have been getting crazy numbers reported by the forum of people online the bots are going crazy on us I think it is AI training bots going at it at least that is what it looks like to me.
  • The Helper The Helper:
    Most legit traffic is tracked on multiple Analytics and we have Cloud Flare setup to block a ton of stuff but still there is large amount of bots that seem to escape detection and show up in the user list of the forum. I have been watching this bullshit for a year and still cannot figure it out it is drving me crazy lol.
    +1
  • Ghan Ghan:
    Beep boop
    +1
  • The Helper The Helper:
    hears robot sounds while 250 bots are on the forum lol
  • The Helper The Helper:
    Happy Saturday!
    +1

    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