Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] Maze Techniques: Unit with Locust and Flying Platforms

Discussion in 'World Editor Help Zone' started by Nestharus, Mar 3, 2013.

  1. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    Maze Techniques

    Floating Platforms
    Grass burning
    Terrain check
    Dummy unit
    Portals
    Puzzles
    Bosses (coming soon)
    Unit Death Handling


    Keep in mind that I didn't code nice item handling for the dummy unit. It's ok, but I was semi lazy : P.

    These are not systems in here, these are just proof of concept ; ).

    The terrain check can be fine tuned to be more or less accurate (how far the unit has to be on the terrain for that terrain to kill the unit).

    For platforms and collisions with traps, I'd suggest checking both xy range and z range (if the platform is floating above an enemy, that enemy shouldn't kill the player unit).
     

    Attached Files:

    • Maze.w3x
      File size:
      118.9 KB
      Views:
      72
    Last edited: Mar 4, 2013
  2. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    Cool!
    Gonna test this later :D
     
  3. Zeatherann

    Zeatherann

    Joined:
    Nov 25, 2008
    Messages:
    1,303
    Resources:
    6
    Skins:
    1
    Tools:
    1
    Maps:
    4
    Resources:
    6
    Wrong forum? or do you need help with it?
     
  4. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    This is the correct forum for what I put it up for.
     
  5. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    Yeah,he is right.

    This is a technique in WE so this should be in WEHZ in case some people needs this.
     
  6. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    No, it's an idea. You submit resource ideas etc here, not to JASS or Spells section :p, that's where completed resources go. This isn't a tutorial either, too much work, hence why it made its way here =).

    edit
    btw, I used to make a lot of mazes and came up with a lot of interested/cool techniques as well as ideas.

    For example, imagine a field of grass with various roaming units. Along it are some dirt patches. The grass kills you. Your unit has a flame thing that it can use on the grass. When it is thrown on to a patch of grass, the grass burns for a few seconds, then the flames go away and you see dirt. The grass grows back after a few seconds as well.

    You have a limited amount of time to get through it, you have a limited number of uses for the flame thing + a cooldown on it. You must solve : P.

    Another interesting idea was a huge labyrinth sorta deal filled with rotating blades. These blades would follow a square path. The labyrinth had many ways to get to the end (not really a maze at all, just sorta a set of columns with walls between them). You had to solve the timing to go through the labyrinth without getting killed by the blades. There was also a straight path from the entrance to the exit, but that was ofc suicide : P, a dummy path. There were many like that =).

    Another puzzle was the infinity symbol laid out. You had 2 square blocks and 2 blades, one for each of them. One block was slightly higher than the other. You also had a straight path from the top to the bottom. You had to go left, around the left block, then top right to enter the right block, then around that, then exit.


    Lots of fun things you could do in mazes =). I used to have a clan and I'd make them these mazes and then they'd solve it. The mazes required both skill (pintpoint accuracy for timing and handeye coordination) as well as crazy problem solving (they were essentially puzzles). Needless to say, I've came up with a lot of fun techniques. I figured that I'd share them with everyone. I'll probably turn it into a pack of techniques and submit it to Spells eventually =).
     
  7. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    Just like Codeless Save Load ??

    btw,laugh at my GIANT REP NES WAHAHAHA
     
  8. shadowvzs

    shadowvzs

    Joined:
    Nov 13, 2006
    Messages:
    1,803
    Resources:
    2
    Spells:
    2
    Resources:
    2
    nice ideea the create region for flying platform unit but idk where u move it (coz exist that leave region function), whatever for rpg could make a bit +code for make dummy clone unit with same attachment/items and etc then destroy them

    what i dont got, where u got this number? .031250000
     
  9. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    Its the standard looping value we used in JASS/vJASS

    this is because 0.3125 when it loops will end exactly at 1.00,unlike 0.3 which will end in 0.99
     
  10. shadowvzs

    shadowvzs

    Joined:
    Nov 13, 2006
    Messages:
    1,803
    Resources:
    2
    Spells:
    2
    Resources:
    2
    what loop? i dont really got it
     
  11. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    For example if you periodically move a unit in a missile system. The actions loop through several times.

    When the time between loops is 0.03125, it does exactly 32 loops per second since 1/0.03125 = 32. The position of the unit is updated 32 times per second then, which is quite smooth unlike 20 times for example.
     
  12. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    Added some new techniques

    For the platform, it should probably wait for the unit to get on it, then go across. It should also lower fly height, unit gets on, raise fly height, go across, lower fly height, units gets off ; O.

    The unit selection circle should be like .01 or w/e so that users can't see it.

    Item handling could be done better.


    These are just to show the cool ideas for mazes and how to do them (semi), lol.


    Try to go through the maze =). The flamer burns grass for 2 seconds, then the grass regrows after 6 seconds.
     
  13. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    7,014
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    Set it to a negative number and it will be totally invisible. ;)
     
  14. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    Added thing for unit death (try dying)

    Made the ordering units totally invisible

    Improved platform code

    Added new grass burning puzzle (better than other one)

    Added portals

    Added boss (to be worked on, portal doesn't go to boss atm)

    Will eventually switch between two types of units, one for platform and one for reg. Platform unit shouldn't tilt on terrain. Reg should. That is why there is an active unit var.

    -----------------------------------------------------------

    Will eventually do some spiffy collision detection.
     
  15. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    that platform is amaiiiiiiiiizing
     
  16. shadowvzs

    shadowvzs

    Joined:
    Nov 13, 2006
    Messages:
    1,803
    Resources:
    2
    Spells:
    2
    Resources:
    2
    u dont added revive to mazer? :D
    the flame item why dont work? i selected the raget area but nothing happened
     
  17. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    You have to be in range. The green circle should highlight your unit. This is purely due to the fact that the item is not on the unit you are seeing, but is actually on a unit at a corner of the map >.<.


    The revive thing just hasn't been coded, but it can easily be added =).