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
460
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
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
460
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
460
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
460
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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top