| 06-28-2006, 09:27 PM | #1 |
well I've been looking for a spell for an alchemist in my map so that she'll have an ability to spawn an item, I've figured out how to do the ability with the cost of items and a dialouge system but that proves pointless as the user can easily make as many items as he or she wants with no mana cost, I can't quite figure out how to make a spell that would take the items from the heroe's inventory then give the ending product to the hero, can anyone help? |
| 06-28-2006, 10:24 PM | #2 |
Well, i don't understand you, but have you tried adding a condition that checks the heros mana? ?? |
| 06-28-2006, 10:32 PM | #3 | |
Quote:
Trigger: ![]() unit begins casting an ability
![]()
![]() ability being cast = Brew Potion
![]() Triggering unit = Hero_X
![]() Item Being Carried By Hero = Empty Vial
![]()
![]() Display Text: Potion Created
![]() Remove Empty Vial From Hero_X's Inventory
![]() Create Health Potion for Hero_Xand then reverse the trigger to display a message so that when he doesn't have an empty vial it would display a message saying :insuffiscient ingredients or such, Make sense? |
| 06-28-2006, 10:37 PM | #4 |
Better to use an if/then/else, and thus put it all into one trigger. But yea, that should work. |
| 06-28-2006, 10:47 PM | #5 | |
Quote:
but I can't find a condition for Item Carried By Hero, that doesn't deal with a slot |
| 06-28-2006, 10:51 PM | #6 |
Boolean comparisons. "Unit has item of type XXXX equal to True". |
| 06-28-2006, 11:01 PM | #7 | |
Quote:
|
