| 06-22-2004, 12:44 PM | #1 |
hi people do u know how to do a rare item check trigger? because for my map i will be adding rare item and i don't want any hero to carry more than 1 of the rare item. hence if he carry more than 1 rare item the momment he carried the second rare item it will be drop. |
| 06-22-2004, 02:02 PM | #2 |
Variables: NrOfItems : Integer Events: A hero picks up (or whatever) an item conditions: item being manipulated equal to (rare item) Actions for each integer A from 1 to 6 if item type of (item in slot (integer A) equal to (rare item)) then nrOfItems = NrOfItems + 1 end if end loop if NrOfItems > 1 then drop (item being manipulated) from (hero manipulating item) end if That should work. |
| 06-22-2004, 02:08 PM | #3 | |
Quote:
there are a few ways I beleive.. you can use item groups or not.. unit aquires item.. if item is in itemgroup then do: count items held by unit in itemgroup and do if number is greater than 1 remove item being manipulated from unit.. something of that sort.. I don't know about exact events conditions and actions but they shouldn't be hard to figure out.. and sorry if my typing is messed or if I am wrong.. kinda tired atm.. but I tried ehh.. I'm slow to do things.. posted slow.. but he did a better job anyways with the whole layout and things >.< |
