• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Triggerproblem with "unit comes in range" . pls he

Status
Not open for further replies.
Level 2
Joined
Jul 28, 2006
Messages
18
Hello,

i had this idea of a guided missile, then i played "Ninja vs Samurai Legends" and there is a Hero who has the ability which i need -`>"Magical Arrow"

Well i think it works very easily and it is really easy, but one thing i cant make. I will tell u later.

Have a look at !MY! spell.

(The question is a the bottom of this thread but pls read everything to understand, thank you)

--
--

Code:
##EVENT##
A Unit begins to use a Ability

##CONDITION##
Ability being cast = MAGICAL ARROW

(This ability does nothing, it is only for triggering)

Code:
##ACTION## ---1---
create 1 "WISP" for PLAYER of TRIGGERING UNIT at POINT OF TRIGGERING UNIT

("WISP" is a unit which has the abilities "locust" and "kaboom!". The unit should be uncontrolable and the unit should be able to attack a enemy anyway. The ability "kaboom!" is everytime activated)

Code:
##ACTION## ---2---
set "VAR-WISP"(variable=unit)  =  last created UNIT

WAIT 6 seconds

destroy "VAR-WISP"

--
--
--

It creates a Unit which will be able to attack for 6 Seconds every enemy in his Range of Vision.
But i want something else.

I will try to describe it a little bit.

Code:
--EVENT--
A Unit begins to use a Ability

--CONDITION--
Ability being cast = MAGICAL ARROW

--ACTION--
create 1 "WISP_MAKER" for PLAYER of TRIGGERING UNIT at POINT OF TRIGGERING UNIT
(This unit should live for 30 Seconds and has no ability i think)

And if a UNIT comes within RANGE with WISP_MAKER

-> create 1 "WISP" for PLAYER of TRIGGERING UNIT at POINT OF !! WISP_MAKER !!
-> DESTROY "WISP_MAKER"

The WISP should live for 8 Seconds and try to use "kaboom!" on a (random) unit which comes withing range (500).


---
---

????????
Well the unit will use "Kaboom!" by itself but how to make a trigger with this sh**y "comes in range of WISP_MAKER"
????????


Thank you for helping me.
 
Level 9
Joined
Jul 27, 2006
Messages
652
lol this might help...
theres a trigger function for "add event to trigger"
add the event unit enters range of "wisp-Maker"
 
Level 2
Joined
Jul 28, 2006
Messages
18
are u crazy :) ... i stopped mappin :) ... 3 months later someone answered to my thread :)....

but i found it out myself... nevertheless thank u , bye
 
Status
Not open for further replies.
Top