HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Set Items

03-01-2005, 07:21 PM#1
Zero
In my map there are set items. I did a trigger like this:

Event
- Unit acquires an item
Conditions
- Hero manipulating item has an item of type Set Item #1 equal to true.
- Hero manipulating item has an item of type Set Item #2 equal to true.
- Hero manipulating item has an item of type Set Item #3 equal to true.
- Hero manipulating item has an item of type Set Item #4 equal to true.
Actions
- Display txt msg saying "You've completed XXXX set."

Now, this is the tricky part. You can, from what I understand, only add spells and modify unit attributes with triggers. So, seeing as if you were to make a spell be available, you could only do one spell and spells arn't like items, so you wouldn't be able to add any additional thing onto the spell.

It is kinda limited on things you can do. Also, I need to somehow set it up so that if the hero no longer has the full set, the hero loses the set bonus. I am running blank right now on how to accomplish this.

If anyone could give me a suggestion, that would be great. Also, has anyone done anything like this before?

If so, maybe you can give me some good ideas for things that would happen once you've completed a set...
03-01-2005, 09:56 PM#2
Anitarf
It's simple. When you collect a set, you add an ability to the unit, like for example HeroStatBonus+5allStats, and then you make a similar trigger for when a unit looses an item: you check if the unit has the item-set-bonus-ability (integer comparison - level of ability for unit greater than 0) and if it does, you additionaly check if it is missing any of the items that constuitute the set: if it does, you remove the ability.

You could also replaceg the set items, once they are gathered, with a new one that gives you all the effects of those items and the bonus effect (this process is called item merging or item crafting, a whole bunch of trigger examples for that are in the repository).
03-02-2005, 01:21 PM#3
Zero
Quote:
Originally Posted by Anitarf
It's simple. When you collect a set, you add an ability to the unit, like for example HeroStatBonus+5allStats, and then you make a similar trigger for when a unit looses an item: you check if the unit has the item-set-bonus-ability (integer comparison - level of ability for unit greater than 0) and if it does, you additionaly check if it is missing any of the items that constuitute the set: if it does, you remove the ability.

You could also replaceg the set items, once they are gathered, with a new one that gives you all the effects of those items and the bonus effect (this process is called item merging or item crafting, a whole bunch of trigger examples for that are in the repository).

In the editor it only lets you add up to four abilites only.

Is there a way to make it so you can add more?

If not, how am I suppose to combine all 4 items and all those abilites?
03-02-2005, 01:39 PM#4
shadow1500
you add the stats ability to the unit once he has all 4 set items, and then make a trigger that uses this event "unit - unit loses an item"
use "Or, Multiple conditions" to check if he has lost any of the items of the set
"unit - unit has item of type (set item #1) equal to false"
do that to all set items and put it in the "or, multiple conditions" box
then remove the "Item Hero Stat Bonus" ability from the unit.