HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Counting Items

04-25-2007, 10:49 AM#1
Tide-Arc Ephemera
Ok, I need an answer in GUI...

Ok, so what I want to do is to be able to count items in a region, say like a trigger that makes items if there are less than X of item types ABC in a region.

So, is there a condition that counts items in a region, or do I have to use a system of variables and other triggers?
04-25-2007, 11:27 AM#2
blu_da_noob
Trigger:
Set i = 0
Collapse Item - Pick every item in (Playable map area) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Item-type of (Picked item)) Equal to Tome of Experience
(Item-type of (Picked item)) Equal to Mask of Death
Collapse Then - Actions
Set i = (i + 1)
Else - Actions

And because GUI fails, you can't do this in the condition. So just do this in the action and have an if/then/else for your action after it.