| 08-02-2004, 04:14 AM | #1 |
Hi. I haven't really tried this myself, so it may be premature to ask. But anyway. . . I'm thinking of setting up a shop that sells items only to certain heroes. For example, only sword wielding heroes can buy "sword" type items, and only bow using heroes can buy "bow" type items. Maybe only magic type heroes can buy "wands", and warrior type heroes can buy "armours". In other words, when a hero approach this shop, only certain items will be available to him, depending on what type of hero he is. Is this do-able? |
| 08-02-2004, 04:17 AM | #2 |
And I'd rather have all this in one shop, and not one shop for each type of items. |
| 08-02-2004, 01:34 PM | #3 |
Items have a classification field (charged, permanent, artifact etc.). You can check the classifications using triggers. So, you could for example place all swords in the charged item category and each time an item is bought, check the classification of the item against the unit type of the buying unit and if he isn't supposed to have the item, force him to drop it. For shops, no requirements (tech, unit etc.) can apply to the units sold so there's no way to make only a certain set of units appear for a hero without removing items from the shop when the hero approaches it. |
