• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

A flat mana regeneration value

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2007
Messages
57
Hi :) ive tried to find a mana regeneration value that is like "regenerates 2 mana per second", but i cant... all i can find is % based, which is not what i want :)
if it requires a trigger, will you please type it whole? cus i tried and gave up when i couldnt find the "item picked up equal to <my item>" <.<
 
Level 4
Joined
Nov 17, 2007
Messages
57
ive made the Item being manipulated = Picked/used item now.

what do you mean with the last bit? if its a variable then it should be Unit Group i guess? and how do i "add into gorup MANA" ?
 
Level 4
Joined
Nov 17, 2007
Messages
57
Ok i did all this now, but its for an rpg.. and this seems like it wont work if (example) the hero picks up a second item which has 2 MP/s - would i have to make a second Unit Group? and what if the hero picks up 1 more item with 1 MP/s, would i have to make a second 1MP/s-unit group again?
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
>every one sec of game
set UNITGROUP unit in playable map area matching condition (matching unit has item of type....)
pick every unit in UNITGROUP and do cation
set mana of picked unit to mana of picked unit + 2
call DestroyGroup(udg_UNITGROUP)
 
Last edited:
Status
Not open for further replies.
Top