• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
envenger
Reaction score
2

Profile posts Latest activity Postings Experience Resources About

  • I was quet too busy to answer you. Well, it's cool. Now i think, that i totaly need to remake that fireball model:)
    Yes sure you can add me on skype, my name is lowe257. However now I'm going to bed it's 03:20 here in Sweden.
    I'm not sure. I think if you remove or change the cancel button in one place, then it is changed everywhere. It would seem logical.

    I've now added the new information into the tutorial.

    The reason why you want cancel to work with a different key is that then you could also close the spellbook?
    Add this to the BonusMod and you have what you want.
    function SetAttackSpeed takes unit u,integer AttackSpeedToAdd returns nothing
    local integer i = 0
    loop
    exitwhen i > AddAttackSpeedAbils
    if GetUnitAbilityLevel(u,AddAttackSpeedAbil) > 0 then
    //set AttackSpeedToAdd = AttackSpeedToAdd + IntPower(2,i) //This line has been disabled, that's the only difference.
    call UnitRemoveAbility(u,AddAttackSpeedAbil)
    endif
    set i = i + 1
    endloop
    set i = AddAttackSpeedAbils
    loop
    exitwhen i < 0
    if AttackSpeedToAdd >= IntPower(2,i) then
    call UnitAddAbility(u,AddAttackSpeedAbil)
    set AttackSpeedToAdd = AttackSpeedToAdd - IntPower(2,i)
    endif
    set i = i - 1
    endloop
    endfunction
    Oh, well done :D You somewhat extended the functionality of my system.
    I think the problem is in your changeattackspeed function. To try out if it is you can just remove bonuses in a different way, like
    local integer i = 0
    loop
    exitwhen i > AddAttackSpeedAbils
    if GetUnitAbilityLevel(u,AddAttackSpeedAbil) > 0 then
    set AttackSpeedToAdd = AttackSpeedToAdd + IntPower(2,i)
    call UnitRemoveAbility(u,AddAttackSpeedAbil)
    endif
    set i = i + 1
    endloop


    Note that my system acts like AS can be increased up to 511%
    I've noticed some things I don't understand.

    Firstly, my system doesn't support negative bonuses yet.
    call AddAttackSpeed(udg_TargetingHero[0], -400)

    Second, where is this function?
    call changeattackspeed(pointvalue,127)
    I can't download from there. Use the hive pastebin to give stuff.

    Anyways, note that the attack speed bonus is in percent and that you need to set the abilities right(if you imported the system to somewhere else than my testmap)
    ----------
    Really nice map. I am making a cast bar system for my map using it.

    Btw what is the cast time duration? I made a spell with 20 seconds and made it cast 5% speed But the cast bar is delayed?
    ----------
    Hi!

    I saw that you commented this on JesusHipster's progress bar resource. Maybe I'm too late out here, but if I get your question correctly you want to know how to calculate the total cast time for a spell? The trick is that there are two parameters to take into account: the "Stats - Casting Time" property of the casted spell and the "Art - Animation - Cast Point" in the unit fields of the unit casting the spell. If you add these two values you'll get to exact cast time. I think many map makers forget or are unaware of the role of the unit's cast point in all this. The cast point is like a delay that is there to sync the spell cast with the unit's spell animation.

    It is simular to how the attack animation damage point field works for attack - if one wants to have a unit with extremely fast attack speed that field has to be reduced because it delays the damage or missile spawn for an attack to sync up with that particular unit type's attack animation.

    I tried to explain this with trigger comments in the test map I made for the resource but maybe I didn't make it very clear.
    Maybe your anti virus blocked it.

    Temporarily disable it and re-download the file.

    Then make sure the new .exe is in your firewall's exceptions list.
    Maybe try some compatibility settings.

    If you've configured it and you're running it as explained in the post and it still isn't working, I'm afraid I can't help since I didn't make the program.
    1 it shouldn't.
    2 it doesn't The animation length is exactly one second, but the people still have this problem. Don't know why. If you know any other models without htis problem, you can just send them to me, so i can check them out and prob. fix that glitch.
    I think this is because you have an outdated or buggy JASShelper or you are not using the Jass NewGen Pack Editor.
    If you want to remove a certain bonus, then just use the Add function and use a negative amount(the amount that the bonus gave).
    If you want to remove all, then just put in a very large negative number, like -9999. I don't recommend this way though.
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top