HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding permanent mana?

07-24-2003, 09:47 PM#1
FyreDaug
How can this be done?? There is no ability that adds perm mana, just health. If you give a charged item an ability that adds mana if you hold onto it, it will just give the mana when you pick up, and remove it when you drop the item.

I haven't found a way to add permanent mana.
07-24-2003, 10:04 PM#2
Panto
I don't suppose you'd be content to change the mana recharge rate?

I don't know of a way to add mana, but the spellcaster upgrades all increase the mana rate.
You ought to be able to manipulate one of those, if that's good enough for your needs.
07-24-2003, 10:21 PM#3
ChronOmega
im pretty sure that if you remove an item instantly remove it, the bonus will still remain, dunno if this will work, but i it could help
07-24-2003, 10:21 PM#4
FyreDaug
It has to be an item, and it has to be usable, many times. You find items and stuff that add 1-15mana, and you can use them at will.
07-24-2003, 10:41 PM#5
ChronOmega
how bout you make an i tem with charges thatsummon monsterx then when monsterx enters the mapyou give s the summoning hero an item then remove it?
07-24-2003, 10:43 PM#6
FyreDaug
I want to avoid triggers, why is there no skill that adds mana? *shoots blizzard*
07-25-2003, 01:14 AM#7
piRo-piOn
To tell you the truth, abilities not done via trigger editing aren't all that exciting. The reason blizzard did not include an ability editor in RoC is that they thought SLKs were only a means of balancing out already created spells. The real spells were hard coded, via JASS. Of course you could make an Uber-Ultimate blizzard that does 500 damage but that wont be all that exciting. If this is for your DCM and thats why you dont want to use triggers i suggest you make a custom .j file and an extra set of triggers like Dark Crescent Initialization - Run Initialization Script that you would use to load your abilities. If you need help with this i can explain in more detail.
07-25-2003, 01:31 AM#8
Earth-Fury
lol remoive an item fro mthe game when a hetr0o is holdign it and he gains its effect perminantly.
07-25-2003, 01:34 AM#9
LordAllout
Make a custom upgrade, give it the plus mana properties, make it like 100 levels or something. Add the upgrade to the heros techtree. When hero uses the item, +1 the players' tech level on the custom upgrade, and show a little effect if you want.
07-25-2003, 02:12 AM#10
FyreDaug
pIro, I understand it, might work on this.

EF, it has to be a charged item...

LordAllout, what if you use more than 100 with the hero?
07-25-2003, 05:07 AM#11
Panto
Perhaps you could make multiple versions of the item with different quantities of charges, and when one is used, it's removed (to make it permanent) and you give the hero another one that has one less charge.

I know you didn't want to use triggers, but this looks like the way.
08-15-2003, 01:13 AM#12
element_5
I know it's been almost a month since the last post in this thread, but the question was unanswered. I have found a solution :)

I based the item on a Potion of Greater Mana, but I imagine it can be based on any charged item. I created an item ability based on the "Item Mana Bonus (200)" ability, and changed the name to "Permanant Mana Bonus (200)." This was the only change to that ability. Then, I created a dummy item ability based off Penguin Squeek (I renamed it to "Dummy (Perm Mana)" and removed the sound). I removed the default ability from the Potion of Greater Mana and added the "Dummy (Perm Mana)" ability to it. Then I used the following trigger to detect when the item was used, and add the "Permanent Mana Bonus (200)" to the Hero:
Code:
Add Permanent Mana
    Events
        Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Dummy (Perm Mana) 
    Actions
        Unit - Add Permanent Mana Bonus (200)  to (Casting unit)

It works like a charm. The Permanent Mana Bonus ability doesn't appear in the UI and the Hero gains 200 mana permenantly. I've attached the example map.

EDIT: I forgot to mention that the effects ARE cumulative and can be removed one at a time using the "Ability - Remove" action, or many at a time by putting the "Ability - Remove" action in a For Loop :)
08-15-2003, 01:27 AM#13
dataangel
Quote:
Originally posted by FyreDaug
I want to avoid triggers, why is there no skill that adds mana? *shoots blizzard*


Why do you want to avoid them? You know you can still have an isolated .j file with the engine in it that uses triggers.