HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Runes and Items Dropping

04-12-2003, 03:58 PM#1
Buttink
are we able to set runes and items to drop in the WE for FT or is that not possible yet
04-12-2003, 04:54 PM#2
Starcraftfreak
Also in the Classic WE we can set items to drop. I don't know about runes (don't have TFT).
04-12-2003, 07:10 PM#3
|)@rk-Revenant
I am very good at triggers. Jus tell me what u did.
04-13-2003, 02:26 PM#4
Buttink
LOL u are good at triggers welcome to the club i was the head triggerer (<--- lol is that the spelling) for the war3pub crap but then got dumb working for cousinphil
04-14-2003, 06:15 AM#5
Krakou
You don't nead trigger to drop items, just double-clic on a unit on your map and give the unit a set of item to drop.

But if you spawn units in game then use this trigger:

Event:
A unit owned by neutral hostile dies

Cond:
none

Action:
Create a random item of level x at position of dying unit
04-14-2003, 08:19 PM#6
Starcraftfreak
I'm not that good in the editor, but is there a way to assign items to drop (maybe with chance) the same way it is possible, if you doubleclick the unit, via triggers? I wonder about it, because, what you said Krakou, is true (and it works of course), but in some way different.
04-15-2003, 06:55 AM#7
Krakou
You can simulate the random drop by using a random number.

The action would be :

If (random number from 1 to 100) is less or equal to 20 then do (Create a random item of level x at position of dying unit) else do nothing

This simulate a 20% chance to get the item.
04-15-2003, 02:32 PM#8
keeperofstormz
or.....
varibles- random_item interger

event:::::::
**units dies***

condition::::
dying unit is owned by player X

action:::::::
set random_item= random interger between 1 and 100(change this to make items drop less)

if random_item= 20 create a random level X item at position of dying unit




this will enable u to have almost a different drop every time cause u can add a if/then/and for each number.. such as..


if random_item= 19 create a potion at position of dying unit


if random_item= 85 create a greaterpotion at position of dying unit


if random_item= 67 create a manapotion at position of dying unit


and so on for each interger....

add this for no drops..

if random_item= 42 do nothing

and to increase the chance of something dropping, simply repeat it with a different interger...like this..

if random_item= 66 create a manapotion at position of dying unit
if random_item= 21 create a manapotion at position of dying unit
if random_item= 78 create a manapotion at position of dying unit
if random_item= 54 create a manapotion at position of dying unit
if random_item= 99 create a manapotion at position of dying unit

the only problem with this is that warcraft3 seems to want to repeat multiples of 5 a lot more than any other number..