Loss of Mana

Kirtanei

New Member
Reaction score
0
Hi there.

I'm currently working on a map where Heroes won't gain any direct effect from Attributes (i.e. Defense from Agility, damage from Prim. Stat, health from Strength. etc.), they gain them via Research upon leveling up.

While not being the fundamental I think it may be cause to the problem.
You see, whenever my Hero picks a new ability it loses all mana (leveling up an ability does not cause this).

Could it be related?
 

Kirtanei

New Member
Reaction score
0
But that would make the map extremely imbalanced if a Hero could receive 100% mana just for taking a skill.
 

tommerbob

Minecraft. :D
Reaction score
110
When the hero gets the abilility, set a variable to its current mana. Then after he gets the ability, set his current mana to that variable.
 

DioD

New Member
Reaction score
57
its code related, somewhere you set his mana to zero, there is no skill to do it.
 

Kirtanei

New Member
Reaction score
0
But it's a MOBA-type of map. It could, in a pinch, turn a situation upside-down.

its code related, somewhere you set his mana to zero, there is no skill to do it.

I'll try and dig a bit deeper into it all. Hope I find something along these lines. :)
 

Whoareyou.

New Member
Reaction score
24
I have no idea what Moba is. You are being very ambiguous. What exactly is your problem?

Hi there.

I'm currently working on a map where Heroes won't gain any direct effect from Attributes (i.e. Defense from Agility, damage from Prim. Stat, health from Strength. etc.), they gain them via Research upon leveling up.

While not being the fundamental I think it may be cause to the problem.
You see, whenever my Hero picks a new ability it loses all mana (leveling up an ability does not cause this).

Could it be related?

So whenever his hero levels +1 his mana gets set to 0.

Check your triggers for anything mana-related and check them or is your Intelligence negative or something, and that when you changed it from gaining mana from Intelligence something went wrong.
 

Kirtanei

New Member
Reaction score
0
His intelligence is 0.

I've made sure you don't get mana from intelligence.

I've made a trigger that, upon leveling will research an upgrade that supplies the Hero with mana, health, mana regeneration and damage.
- I'm guessing it's related to that research.

But so far I can't seem to tell what exactly causes his mana to drop.
 

NeuroToxin

New Member
Reaction score
46
well, check his maximum mana, or base mana, or dont use upgrades? create abilities and just add the corresponding agility/intellect/str based on the abilities they get
 

Kirtanei

New Member
Reaction score
0
well, check his maximum mana, or base mana, or dont use upgrades? create abilities and just add the corresponding agility/intellect/str based on the abilities they get

Okay. So I did some testing and it appears he's affected by the maximum mana.

Increased it to ~1000 and upon choosing an ability he didn't lose any mana.
Thanks a lot. I'll see if I can work around this.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top