Warcraft III resources & community, 2003–2006 · archived

Map help with one trigger!!

4 posts
#1

Map help with one trigger!!

Lets start my probleme is item drops. Te normal mobs on map drop item but the spawn monster dont drop. And i read other topic item drop. Here are the trigger.
Event-
A unit dies

Conditions-
(dying unit) equal to <the creep that drops item>

Actions-
Set <itemdrops> to random number from 1 to 10

If/then/else-
-If <itemdrops> equal to 1
-then create (item) on position of (dying unit)
-else do nothing

If/then/else-
-If <itemdrops> greater than 1
-then do nothing
-else do nothing



in this trigger all are good but the probleme its i dunno where go for put trigger
Set <itemdrops> to random number from 1 to 10

If/then/else-
-If <itemdrops> equal to 1
-then create (item) on position of (dying unit)
-else do nothing

If/then/else-
-If <itemdrops> greater than 1
-then do nothing
-else do nothing

Can someone tell me where i need to go or give a map where this trigger are in plz.
#2
u dont have to use that variable, just do this:

actions: if/then/else
if: (integer => math random number) random number between 1 and 10 is equal to 1
then: create item
else: Do Nothing
#3

Re: Map help with one trigger!!

Night_Ghost
If/then/else-
-If <itemdrops> equal to 1
-then create (item) on position of (dying unit)
-else do nothing

If/then/else-
-If <itemdrops> greater than 1
-then do nothing
-else do nothing


You dont need second "If/Then/Else", that's what "else do nothing" is for in the first "If/Then/Else". But yeah do Ramza's method.

You said they never create item, did you kill very often to be sure? You gave it 10% chance to create item, try like kill 30 times (without leaving map) to check.
#4
Ty for helped. Now it work.