HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero ability that allows/disallows item purchases/usage.

06-12-2006, 01:34 PM#1
ajdun_2008
Not sure exactly how I could explain it in the title. Anyway, what im trying to do is make it so a small hero has say three skills to choose from, they read as follows:

Quote:
Pledge yourself to the god of "cloak and dagger":
-provides a small evasion chance at level one
-level two provides a small chance to steal gold from an enemy when attacking
-level three provides windwalk
-allows the purchase of God of "cloak and dagger" items. (this one is present in all ranks)

Pledge yourself to the god of "the sword":
-provides a small chance to do double damage at level one
-level two provides a small chance to cause your opponent to bleed, causing damage over time and slowing their movement and attack speed.
-level three provides the chance to instantly kill the target
-allows the purchse of god of "the sword" items. (this one is present in all ranks)

Pledge yourself to the god of "the shield":
-provides a small chance to block an attack
-level two provides a small chance to reflect a percentage of damage
-level three provides a skill to bash the target with your shield or weapon, stunning the opponent for 1sec, and increasing their chance to miss for 3sec after the stun
-allows the purchase of god of "the shield" items. (this one is present in all ranks)

so, now that we have three different skills to choose from, with three different levels in each, imagine that the hero can max at 100, and only choose one pledge. Each pledge will allow you to buy different items, IE. if you are pledged to the shield, you can buy a god of the shield blessing, but not a god of the cloak and dagger or god of the sword blessing. the higher level you are, the better stuff you can buy.
----------------------------------------------------------------------
Does anyone know how I would do that? I cant seem to figure it out, it should work like researching right? but how do I impliment that into a hero ability? and how would I be able to do a level check before buying/using an item?

Any help at all would be appreciated.

PS. I know I could do it by making three different heros for each pledge, and three different shops for each pledge, but I would like to be a little more efficient...
06-12-2006, 05:06 PM#2
Freakazoid
I didn't understand you well, but i think its simple.

When you buy an item, ex. the god shield, check if the unit is pledged with the shield if it is do nothing, if not drop the item from the unit or retreave his gold if he bought it.
06-12-2006, 06:31 PM#3
Panto
Easier to put a requirement on all the items of a certain god, and then give that requirement to the player when his hero learns a certain skill.

This is only useful if you can only have one hero with this set of skills.
06-12-2006, 08:25 PM#4
ajdun_2008
Ok, so how would I check if it is pledged to the god of the shield, would I be able to select custom abilities as a tech-tree requirement?

And panto, how would I do what you speak of?


The goal of this venture is to show me some felixibiltiy of the editor, and to show my friends.

Thanks for your help so far, its all grade-A stuff. I just dont know how to make it happen.
06-12-2006, 09:56 PM#5
Taur
Panto means have a dummy upgrade that represents each diety, when you choose a god, make a trigger that researches the specific upgrade. So if you've chosen shield, you can only buy shield items because sword and dagger ones require the sword/dagger god researches.
06-12-2006, 10:58 PM#6
ajdun_2008
Ah, thanks for all the help!