Items

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Joshsta818
Member
Posts: 86
Joined: April 7th, 2007, 2:39 am

Items

Post by Joshsta818 »

how do you make a trigger that makes a creep drop a certain item with a percent chance? its an orpg so the creeps respawn, so if you use an itemtable..only the orig creep will drop the item..wich sucks
Image
WhiteSkidMaul Wars
~Now Gone Superspeed!~
kwoxer
Junior Member
Posts: 41
Joined: June 3rd, 2007, 7:03 pm

Re: Items

Post by kwoxer »

double click on unit?^^

try it out man ;)
www.kwoxer.de - das kwoxt
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Items

Post by Xantan »

um.. events a unit dies
set variable mathrand (integer) random number from x-100 (x=%)
if/
x=#
then/
create item at unit position of dying unit
else/
do nothing

works yea/
Bartimaeus²

Re: Items

Post by Bartimaeus² »

That's what I did with my angel arena and it worked great.
Sir-Tanks
Forum Spammer
Posts: 635
Joined: May 29th, 2007, 9:02 am
Title: Strange old man
Location: London, England

Re: Items

Post by Sir-Tanks »

I did it with sir-tanks Orpg but i had to make a new trigger for each unit as i wanted different drop rates for each one lol :D
Sir-Tanks is BACK and working on his new map Acts of War!
Take the best Stupidity test here
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Items

Post by weirdone2 »

You needn't have made a new trig for each one you coulda just assigned diff amount of integers to each item. for instance do random 2,101 and set tome of str for 5-10 and set tome of int for 8-20. This way you can even have 2 items dropping at same time. XD
User avatar
Joshsta818
Member
Posts: 86
Joined: April 7th, 2007, 2:39 am

Re: Items

Post by Joshsta818 »

nvm, i figured it out, and no, item tables dont work with units that respawn, it works on that original unit but thats it...and i figured out what i did wrong, i had it so it spawned the item a random amount of times lolz.
Image
WhiteSkidMaul Wars
~Now Gone Superspeed!~
HINDYhat
Senior Member
Posts: 101
Joined: June 1st, 2007, 9:05 pm

Re: Items

Post by HINDYhat »

There are so many easier ways to do this with Jass, so that you just set a value at map init based on a unit type, and then call the function when a unit dies (but since this is GUI :X)
User avatar
Joshsta818
Member
Posts: 86
Joined: April 7th, 2007, 2:39 am

Re: Items

Post by Joshsta818 »

yea it took me like 2-3 weaks to figure out gui mostly, dun feel like spending a month learning jass! YucK!
Image
WhiteSkidMaul Wars
~Now Gone Superspeed!~