Warcraft III resources & community, 2003–2006 · archived

Making Unit spawn with item..

12 posts
#1

Making Unit spawn with item..

hey, How do i create a trigger to spawn a unit and have an item on him and when killed drop it... ?
#2
Event:
Unit- A unit dies

Condition:
Unit-type of (triggering/dying unit) is equal to (unit type)

Action:
Item- Create (item type) at position of (triggering/dying unit)
#4

Another question..

hey .. What if i wanted a unit to have a percent to drop an item, so that its not SET to drop, just has a chance....
#5
if (real number between 0.00 and 100.00 is greater than 35.00) then
create item
#6
What?

How does this work
#7
Wow.

What don't you understand?
#8
Pantoif (real number between 0.00 and 100.00 is greater than 35.00) then
create item


What Panto wrote was an If/Then/Else-Action, I think you'll be able to find that :wink:
btw Panto's Action gives a 65% chance to drop (I know that info was senseless, but I had to give it 8) )
#9

hey

Hey sorry i am a noob, I was just woundering if you could write that out a little more..detailed.. :lol:
#10

Re: hey

Princetonthe1stHey sorry i am a noob, I was just woundering if you could write that out a little more..detailed.. :lol:


ehh, if ya noob use this :)
Event
A unit own by hostile dies
Condition (skip and go to actions)
Actions
Create 1 claws of attack from possition of dying units

just simple like this,, and after find out how to use advanced triggers. you need to play wit the world editor and triggers more.
#11
Ever tried just setting an item table? Works well, and is much easier to set up.
#12
Ling_LoverEver tried just setting an item table? Works well, and is much easier to set up.


ya i think so too,,but setting in item table only drop 1 time ..lol thats not good for rpg..that dude on top there doesnt understand triggers,,why didnt he set in item table,, its eazy for him...he could set item table continue on dropin with triggers also,,but thats for advanced stuffs..i dont think he could do that :)