• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Making Traps Work

Status
Not open for further replies.
Level 2
Joined
Mar 13, 2012
Messages
19
In my map, I added some traps, but I don't know how to get them to work by using the Trigger. Plus the traps just blocks the characters without inflicting any damages. So what are the Triggers for traps?
 
Level 2
Joined
Mar 13, 2012
Messages
19
Not really.

The traps I have on the map are fire traps and spike traps. I want the fire traps to burn the characters by inflicting fire damages, and I want the characters to walk over the spike traps and lose some HP when the spike traps are triggered.
 
Level 2
Joined
Mar 13, 2012
Messages
19
I checked out your traps, but is there a way that I can transfer the trap triggers into my map without importing them. When I imported some triggers, the program replaced all my triggers.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
You can merge trigger data with JassNewGenPack.
It's under Extensions -> Merge Trigger Data
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
If it replaced your trigger, then it perhaps has the same variable name
First, change the name of the variables (all of it) in MY test map to something else (but make it meaningful or you can add some prefix or suffix to it)

And after that, import it right away, it should not overwrite your variable in your map because now it has different name
 
Status
Not open for further replies.
Top