• 🏆 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!

Spike Pit Trap

Status
Not open for further replies.
Level 3
Joined
Sep 15, 2005
Messages
35
Ok so here is the challenge:

My current map is a survival type game and what i want to do is to have a trip wire type spell. The effects of teh spell are yet to be determined, like it could be an explosive or a stasis trap life effect. but the hard part will be creating the actuall trip wire "wire" in game. The spell would have the caster (just a random unit) would select two points on the terrain, (these would be the two endpoints of the "wire" then it would create the trip wire, idk if it would have a special effect or not, but the key would be if any unit were to walk through the line created between the two points, selected by the unit's ability, then the unit walking through would get stunned or damaged..... i am gona try to do it myself but i would love soem helping ideas, like creating the imaginary line between the two points.... and what not
Well thanks for the help
 
Level 3
Joined
Mar 18, 2007
Messages
49
well IF you want
you can make the line a region
and the event could be
Unit > Unit enters region TRIPWIRE > explode triggering unit
or something like that.
Im not that skilled in triggering myself
but i have triggered all
the maps ive made so if you
want to use that go ahead
 
Level 3
Joined
Mar 18, 2007
Messages
49
I think i might have found a way without using JASS. You could always make a dummy unit that is long but skinny and the trigger would be

Event> Unit comes within range of (THE UNIT)

Action> Unit> Explode (triggering unit)
Action> Special Effect> Create special effect at (position of unit(triggering unit)) (EFFECT)


Im not sure if that is correct i dont have the editor up right now but maybe that would work
 
Level 3
Joined
Mar 18, 2007
Messages
49
Yea but you wouldnt be able to see it or you could try and find a model that looks like string and use that then it would look like a trip wire i guess... just throwin out suggestions.
 
Level 4
Joined
Sep 20, 2005
Messages
72
hmm how would a black tint color wall doodad with small scale look for a wire? perhaps a simple custom model of some rectangle? or ive seen ppl use lightning b4 quite flexible for this purpose, but it kinda looks too obvious to be used as a trap... well, im in the same boat, waiting for a better solution =/

what would be your complex jass method be, paskovich? keep track of units in the region and compare xy to line function or something like that? (i really dont know how that would work) but that would be quite annoying....

there must be a simpler way...........
 
Level 3
Joined
Sep 15, 2005
Messages
35
I could easily create a simple rope model, i model a bit.... so i don't think that cgetting the model for the thing is a problem.... is there a way to creatingn units like the rope model, in a line? like create 1 unit, then offeset the next by +4 x +4 y towards the other unit (the end of the trip wire)
 
Level 3
Joined
Feb 18, 2007
Messages
34
i got the ideea --- just make 2 dummys and give one a spell to canst on the other so that theres a permanent lightning between them (and schoose a lightning effect that has the least lightning looking like effect) and then just do a trigger where choose 10 points between the 2 units (add a range of 25around the point) and if a unit comes close just make another dummy cast a stun spell on him for example --- lkets see if this heps :D
 
Level 4
Joined
Sep 20, 2005
Messages
72
creating units in a line can be done by finding the angle between to locations and looping through to create a unit with polar offset at every interval.

but then... what would u do with a line of units? detecting unit comes within range of rope unit? but then you would need some dynamic trigger with events you add on the fly...which would be quite annoying jass stuff...:confused:
 
Level 8
Joined
Sep 13, 2006
Messages
431
but then... what would u do with a line of units? detecting unit comes within range of rope unit? but then you would need some dynamic trigger with events you add on the fly...which would be quite annoying jass stuff...:confused:

Using the idea of creating multiple units,you could use goblin land mine ability and, after the explosion/other animation, either bring back the old land mine unit or create a new one.
 
Level 3
Joined
Sep 15, 2005
Messages
35
Yeah, i actually am starting to agree with V_V_V here, this is gona be some tough triggering for the outcum. if anyone could make an example then awesome otherwise i might focus on other aspects of hte map...
 
Status
Not open for further replies.
Top