HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with trigger involving "number of items"

07-20-2003, 02:53 AM#1
KrEmAyTu91
Is there any way I can make a condition that says something like,

Number of items being aquired of type equal to: #

I really need a condition like this... Can someone show me how? There is nothing under integer comparison that I can do for this.

For example, I'm making an rpg-type map and there is a stash. and if you put, for example, 4 claws of attack +15, in the stash, it will transmute into a claws of attack +60.

So I need a condition which has the type of item and the number of items of that type being aquired... I'm making the event whenever a unit owned by a player aquires an item.
07-20-2003, 03:10 AM#2
yoda_24
if you make the items undropable then you can do this:

* unit aquires item (+15 claws)


* set variable = variable + 1

if variable = 4 then (for integer A = 1 to 6(if item in hero inventory slot(integer A) equals (+15 claws) then remove item)

create (+60 claws) and give to hero.


not exact wording but i think it conveys the message
07-20-2003, 03:13 AM#3
KrEmAyTu91
Problem is I want to make the items droppable
I want to do this without having to make a new set of variables for each combination I want...
07-20-2003, 07:27 AM#4
KrEmAyTu91
Is this impossible to do? Or are you people just getting a bit lazy? Normally my problem would be answered by now.
07-20-2003, 07:32 AM#5
Fragmentation
Quote:
Originally posted by KrEmAyTu91
Is this impossible to do? Or are you people just getting a bit lazy? Normally my problem would be answered by now.


its rude to say peps are lazy here or if feedback is slower

makes people not want to help, more even if they didnt wanna help you in the first place
07-20-2003, 07:35 AM#6
KrEmAyTu91
Well Im asking is this impossible... because my thread died down so I needed a reason to bump it.

I'm just asking whats the matter, since there are usually lots of people eager to lend a helping hand. I am very frustrated with this trigger and I want to get it done by tomarrow, I see many views but no answers.... I never intended it to be rude, but even if it was intentional, i got nothing to lose since no one appears to care anways.
07-20-2003, 06:58 PM#7
KrEmAyTu91
Please help, I'm seriously sorry if i accidently offended anyone... If this is not possible atleast tell me. I'll give credit on my map to whoever can help!