• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Possible to create terrain 'walls' ingame?

Status
Not open for further replies.

Vex

Vex

Level 3
Joined
Dec 1, 2007
Messages
33
Hi.

I'm making a random dungeon generator using the 'Environment - Create Terrain Deformation: Crater' function to simulate hallways and rooms by lowering the terrain. When lowering the terrain in an area, the adjacent terrain will 'lean' downwards so to speak. That is my 'walls'. The only problem is that I want the angle between the floor area and wall parts to be 90 degrees. I have divided the map in squares that are 128x128 points each. One square is either a floor, wall (with 1-8 adjacent floor squares) or just a normal dirt square (no adjacent floor squares).

This is how it looks now: \___/ while I want it to look like this: |____|

I know you can use destructibles/doodads/special effects to solve this, but I'm planning to 'rough up' the dungeon to make walls, floors etc. look less symmetrical (minor random raise/lower terrain here and there). A solution w/out objects will be a lot easier to handle as well (if not there will be a gadzillion objects just for walls).

It is possible to make terrain have 90 degree angles when raising/lowering in editors, just don't know how to make it in game :/

Thanks for any replies.
 

Vex

Vex

Level 3
Joined
Dec 1, 2007
Messages
33
Hmm, good point. Forgot that the pretty wall textures will be not so pretty when stretched if it would work at all :S

Seems like it will be doodads or special effects with pathing blockers for walls then.

Thanks for reply :)
 
Level 3
Joined
Sep 13, 2008
Messages
63
Alternative? Forget the crater deformations and use wave instead. By using a thin wave deformation you can create walls (with no waves of course). Same theory as crater deformations, every 128x128 point area can have a wall or not. One last thought, there already is a random maze generator at http://www.wc3campaigns.net. If you change it to use deformations instead of doodads that might be faster? Unless you've ready made the system.
 

Vex

Vex

Level 3
Joined
Dec 1, 2007
Messages
33
Thanks for the info people. I think I have enough to work on and test now :)
 
Status
Not open for further replies.
Top