• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

I require help

Status
Not open for further replies.
Level 5
Joined
Dec 1, 2007
Messages
121
I want to make a Dungeon Map, need help with Triggers

So, I want to create a dungeon map. The problem is, I don't know how. I want, when an unit enters a room, all doors close, some units spawn and, after all units are dead, one of the doors opens, and the player is forced to proceed to another room, where the whole thing repeats.

What I can't do is, making triggers for every area would take ages and a lot of space (It's a big dungeon), I want to make one trigger for all the areas, but I don't know how. I tried "If a unit enters a region", but then I would need to make one trigger for all region.

Any ideas? Suggestions?
 
Last edited:
it will only cost maybe a 100 kb not megabytes

and there is no other way but that :)
 
Ah, repetitive tasks. Gotta love 'em. I remember when i was an itty-bitty nubling and i was trying to make a respawn system for one of my maps, so i made a 1 trigger for every group of creeps that was on the map. It took about like 8 hours to make lol. And then, when i tested it, they didnt work :D
 
Reduce procedural coupling. The remaining code will be very compact.

If all dungeon rooms are the same, design a system which uses the same code for all rooms. Using variables and hashtables can help with this.

By doing this, it allows you to change how all rooms respond (eg in the case of a bug) without having to make the same changes 100s of times (which opens up an error where you might overlook implementing a change).
 
Status
Not open for further replies.
Back
Top