HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Spell?

06-28-2006, 09:27 PM#1
Dr.Nexus
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
Freakazoid
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
Dr.Nexus
Quote:
Originally Posted by Freakazoid
Well, i don't understand you, but have you tried adding a condition that checks the heros mana? ??
that might work but I think I've figured it out

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_X

and 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
Captain Griffen
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
Dr.Nexus
Quote:
Originally Posted by Captain Griffen
Better to use an if/then/else, and thus put it all into one trigger.

But yea, that should work.
hmm I suppose your right I'll change that then

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
MercyfulJester
Boolean comparisons. "Unit has item of type XXXX equal to True".
06-28-2006, 11:01 PM#7
Dr.Nexus
Quote:
Originally Posted by MercyfulJester
Boolean comparisons. "Unit has item of type XXXX equal to True".
ah thank you