1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. Units have been turned into heroes in our latest Icon Contest! Vote for the best icon set at the Icon Contest #18 Poll!
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Removing natural mana regen

Discussion in 'World Editor Help Zone' started by Saishy, Jan 24, 2009.

  1. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    I want to make a hero that gains mana by attacking and receiving damage, he must have a maximum mana of 100 (can't go higher) and can't regenerate mana.

    Is that possible? (Since I already have heroes with the normal mana system)
     
  2. UreDe4D

    UreDe4D

    Joined:
    Nov 4, 2006
    Messages:
    1,166
    Resources:
    2
    Maps:
    2
    Resources:
    2
    if you want to have both types ithink its not possible, but you can chage the mana/mana regen bonuses in gameplay constants, but this would effect all heroes.

    if you want it for only one hero you can maybe give him no mana regen and 100 mana by default, and don't let him gain intelligence by levels, so his regen rate and mana don't change
     
  3. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    and flat mana regen by items or aura?
     
  4. Dragoon_Jett

    Dragoon_Jett

    Joined:
    Sep 2, 2006
    Messages:
    99
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Couldn't you make your hero some obscure target like Ancient or something then make everything that gives mana regen not affect Ancients?
     
  5. Abdoma

    Abdoma

    Joined:
    Sep 25, 2008
    Messages:
    38
    Resources:
    0
    Resources:
    0
    You could make a trigger that runs every 0.25secs which changes the units mana back to what it was last time the trigger was run.
    Then trigger the mana gain/loss and also edit the variable.
     
  6. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    I think there is a mana regen thing that can be put a very low number, like -600% and will just stop mana regen without make the unit looses mana.

    Pugna in DOTA do that.
     
  7. oxxo

    oxxo

    Joined:
    Jan 14, 2008
    Messages:
    362
    Resources:
    0
    Resources:
    0
    its not possible the way its intended, but there are several workarounds that make it work.

    all take different conditions.

    for example 1:
    - totally remove the default regeneration in the gameplay constants.
    - setup a periodic trigger that picks every hero, [except those who you want to gain mana by attacking and taking damage] and gives him an amount of mana that is calculated by their intelligence.

    that would work.

    after reading the other posts, im sure its safe to say, my approach is the most effective
     
  8. Chief-Oblivion

    Chief-Oblivion

    Joined:
    Mar 20, 2008
    Messages:
    458
    Resources:
    0
    Resources:
    0
    Lmfao.. edit the hero in object editor.. this field.. change it to 0..

    Stats - Mana Regeneration

    Max mana being 100 just do this mess with these fields

    Stats - Mana initial amount (100)
    Stats - Mana Maximum (100)
     
  9. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    The problems are the items :(
     
  10. Dragoon_Jett

    Dragoon_Jett

    Joined:
    Sep 2, 2006
    Messages:
    99
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I guess you could make it so the hero couldn't pick up items that give mana regen.
     
  11. Need_O2

    Need_O2

    Joined:
    Aug 24, 2007
    Messages:
    2,880
    Resources:
    0
    Resources:
    0
    3 solutions from me
    - Easiest one I guess: You make a variable to use as mana and you set units mana to that variable every 0.05 seconds for example, and you change that variable on attack and get attacked or use spell etc
    - Make Itelligence not give mana regen in Gameplay Constants (bad thing is it will affect all units so you can add mana regen bonuses to ones you want to have mana regen)
    - Make an ability that gives negative mana regen (base it off from an item ability so its invisible) and keep Item Ability true so it stacks and add that ability to unit <intelligence> times so it will negate all mana regen effect (its a little hard but it can be made)
     
  12. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    That will lag the game?
     
  13. Need_O2

    Need_O2

    Joined:
    Aug 24, 2007
    Messages:
    2,880
    Resources:
    0
    Resources:
    0
    no as long as it doesnt create a special effect or some instance on map its no problem it even wont lag if you make timer interval 0.001 so 0.05 is fine
    but if you are over paranoid make it 0.1 xD

    Edit: *meow*