HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I add mana cost (on attack) to an Item?

10-10-2003, 10:04 PM#1
Thunder-Hunter
Ok, so I made this orb (called Polymorph Orb) and it is supposed cast Polymorph (creep) on the enemy when you attack. I want it so it will deduct 30 mana each time you attack, then when outta mana cease to function till 30 mana.

I am basing off orb of slow, and I tried it with a modified black arrow as first edit. That works. So now I try with polymorph (no mana drain) and it wont work.

So how do I make a Polymorph Orb that autocasts Poly on ppl, and drains mana when you attack?
10-10-2003, 10:14 PM#2
Zachary_Shadow
Don't think you can make items auto cast...

Why not make it a skill instead?
10-10-2003, 10:25 PM#3
Thunder-Hunter
well not really autocast, but cast on attack (e.g. orb that casts Chain Lightning)....

The reason I dont want a skill is so

A)Know how to do this for future refrence
B)I want an item that can be bought or found that has these stats (idea)
10-10-2003, 10:57 PM#4
Zachary_Shadow
Well....I've actually seen this in RotG, Rebirth of the Guardians... They have different orbs that do either forked lighting, death damage and others at a 15% interval of hits...

So I know it can be done...just not sure how
10-10-2003, 11:02 PM#5
saus
*gets to work*
I'll try to figure this out...
10-10-2003, 11:38 PM#6
Illithid
One possible way of doing it is to do the effect completely with triggers. One trigger will check to see if a person pick up an orb of polymorph, when it happens it will turn on another trigger that checks if orb holder has sufficient mana to cast polymorph, if this is the case it turns on another trigger that will check for attacks made by person with orb. it will then create an invisible unit with polymorph and order it to cast polymorph on the target of the attack. you then set the mana of the hero to mana of hero - cost to polymorph. You then end the trigger with a check to see if he has enough mana to cast again and if not you shut this trigger off and turn on the trigger that checks to see if he has enough mana.

Only possible problems you might encounter wil be setting up the triggers to make sure they work seperately for each orb of polymorph user if you have multiple such users at once. You will also need another trigger to keep an eye on the hero's mana when ever he performs an action that costs mana to shut off the ability if he doesn't have sufficient mana.
10-11-2003, 12:03 AM#7
saus
Okay theres lots of bugs lol... oh well just ignore this post then
10-11-2003, 12:37 AM#8
General Tekno
Actually, I was wondering how to do this myself... There isn't an easier way?
10-11-2003, 01:47 AM#9
ULTIMA_WEAPON_
items dont auto cast, u have to activate them
10-11-2003, 01:50 AM#10
Hunter0000
the orbs of slow ect.. do have an "autocast", although ive never fooled around with it at all...
10-11-2003, 08:34 AM#11
Zachary_Shadow
POLYMORPH ORB :) Here you go, curtesey of...ME :)


The orb polymorphs 100% of the time on normal units, and 50% on heroes. It cost 50 mana.

All this can be changed of course, and here is a few issues atm:

Range: The hero gains attack range, and I can't seem to remove it.
Cooldown: I can't get in a cooldown on the orb...it should be there, but it doesn't work. Setting the % to polymorph might give the same "effect" say 2% on heroes and 8% on normal units :)

As a nice little touch, the orb creates a sheep over the head of the hero :P lol

This is a cool item, feel free to use it, but do give me credit ? :)

EDIT: Ok, changed a few things

Set the %'s to: Hero: 5, Normal: 15, Summoned: 25 (I think it does 200 extra damage to summoned as well, like normal poly)

Range fixed, only on ground to air.

Changed the Orb's grafics to a sheep :)

Cooldown doesn't really matter, as the % is way too low for it to affect anything, but either way, it's set to 30 atm (should be working, but I have no way of checking)

PLEASE NOTE: This is an EXTREAMLY powerfull item, and should be modified more, this is just for testing. Mana cost should be at least 150 or even 250. % are just about right, might need them lower on normal and summoned.

Took some screens too, look further down :)
10-11-2003, 08:55 AM#12
Zachary_Shadow
Here is one:
10-11-2003, 08:57 AM#13
Zachary_Shadow
Another, srry about the size...I'm running 1280x1024....next:
10-11-2003, 07:36 PM#14
Thunder-Hunter
Thx.
10-11-2003, 07:41 PM#15
Zachary_Shadow
hehe, thx? :P All I get for doing this for ya?! :)

Well...ok..hope you can use it.. Would like some feedback to what I made, what u like, what your gonna change, stuff like that? :)