HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help making a merchant shop thingy.

07-28-2004, 10:30 PM#1
wiseone
I dont know where to put this so, sorry if this is not in the right forum.

I am trying to make a building sell spells, but i dont know how to make it work. I want them to work like your buying a tome of experience,strength,etc. but you get a spell instead. I have the building based on a market, but i dont know how to make the spells "sell-able".
07-28-2004, 10:34 PM#2
Thrall_89
Well, you could just make the 'spells' sold there a Dummy Item (tome so that it won't appear in inventory) and then create a trigger so that when ItemA [this being whatever the Dummy Item is] is sold to a unit and/or hero it grants that unit/hero a spell. Fairly simple trigger, if you have trouble setting up the trigger itself or something just lemme know and I'll attempt to create it for you. (I prefer not to so that people who look into it actually learn from the information posted and not just mooch off of it =D)
07-28-2004, 11:11 PM#3
wiseone
I'm not sure i understand, i'm kinda slow. i will try to figure it out. thank you.
07-28-2004, 11:38 PM#4
th15
You add triggers that look like this
Code:
Event:
Unit acquires an item

Condition:
Item type of item being manipulated = tome of exp

Action:
Give hero manipulating item Critical Strike

That's just a sample, your actual system will probabl be a fair bit more complicated.
07-29-2004, 12:08 AM#5
wiseone
THANK YOU!. i just fixed it and i works! i greatly appreciate your help.
07-29-2004, 02:31 PM#6
logik
a fantastic system you should use is vexorians engineering upgrade test, it allows you to use tomes that give a unit a hero ability which doesnt get learnt straight away, it gets added into tha ability slots...

you can find it floating around in the repository... i highly recomend it.