• 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.

Help in making a system like Wolf Pack~ +REP (Need in GUI)

Status
Not open for further replies.
Level 9
Joined
Jul 11, 2009
Messages
294
Hello guys,
I need a system just like Wolf Pack.
Where mana(hunger points)drop every few seconds.
If your mana(hunger points)gets to zero,your hp will start dropping.
You can heal your hp by sleeping but if you have no mana
sleeping does not work at all.
And to mantain your hunger points,you need to feed on corpse(i think its made from cannibalize)
Cannibalize restores your mana(hunger points)

So what i need is that making mana drop every few seconds,then if mana gets to zero your hp will start dropping and sleep does not work.
But if you have mana and you sleep,your hp restores.
How to make Cannibalize that restores mp.

Just play the game in singerplayer to know what i'm talking about.

Link to wolfpack:http://epicwar.com/maps/73735/


Thanks in advance
 
Level 4
Joined
Feb 23, 2009
Messages
99
Sorry cannot download the map because of laggy internet -_- but I think I can make the system you want. I'll be back in 30 mins.(gimme rep if the system I made is the one you need!)
 
Level 12
Joined
Aug 22, 2008
Messages
911
Firstly, make the unit have negative mana regeneration.
Secondly, make this trigger:
  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick all the wolf units with no mana and do (All Actions)
      • Loop - Actions
        • Unit - Set unit hp to unit hp - 5
Thirdly, trigger the sleeping thing as well.
The cannibalize thing is way more complicated but hopefully it will turn up for you. Good luck!
 
Level 4
Joined
Feb 23, 2009
Messages
99
Oh, so you only wanted the cannibalize? I thought you wanted the whole system. Never mind. Here's the map.:hohum:
 

Attachments

  • CrazyKiD's Wolf Pack System.w3x
    19 KB · Views: 35
Level 12
Joined
Aug 22, 2008
Messages
911
actually its quite what i need but not exactly what i need.

Lolz. ^^
If I understand correctly the only thing left is the mana cannibalize thing.
It's rather simple, when you come to think about it, especially when there are unit groups around.
For the following triggers you'll need a unit group variable named CannibalizeUnits.
  • Cast
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to Cannibalize
    • Actions
      • Unit Group - Add unit to CannibalizeUnits
  • Interval
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in CannibalizeUnits and do (Unit - Set mana of (Picked Unit) to CurrentHP of Picked Unit + 2 or whatever)
  • Stop
    • Events
      • Unit - A unit stops casting an ability
    • Conditions
      • (Ability being cast) equal to Cannibalize
      • If that condition doesn't work you can try:
      • ((Triggering Unit) is in CannibalizeUnits) equal to True
    • Actions
      • Unit Group - Remove (Triggering Unit) from CannibalizeUnits
 
Status
Not open for further replies.
Top