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. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Kawaii Spell Workshop

Discussion in 'Requests' started by Malhorne, Oct 17, 2013.

Thread Status:
Not open for further replies.
  1. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
  2. xAerox

    xAerox

    Joined:
    Jun 28, 2013
    Messages:
    370
    Resources:
    0
    Resources:
    0
    Owwhhh.. She have the same birthday as my sister XDD Anyways, welcome to the team :3
     
  3. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    She is here since the begginning xD !
     
  4. xAerox

    xAerox

    Joined:
    Jun 28, 2013
    Messages:
    370
    Resources:
    0
    Resources:
    0
    Owh then why u said it like she just came? LOL XD
     
  5. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    because she had a long inactivity ^^
     
  6. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    I just say that we have a girl in the team ^^'
    You bad understood this xD
     
  7. xAerox

    xAerox

    Joined:
    Jun 28, 2013
    Messages:
    370
    Resources:
    0
    Resources:
    0
    Im sooryyy >< Arrghh. That's embarrassing.. :<
     
  8. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    Lol.. hahaha
    and it's Elphis-chan!! <3 :3
    Don't worry about it too much ^^
     
  9. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,512
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    My first request at this great workshop (please do this through sending a map with my requested spells and thank you):

    Deep Wounds

    DDS: No
    Code Type: GUI
    Spell Type: Unit
    Target Type: Passive
    Area of Effect: No
    Number of Levels: 1
    Range: None
    Duration: Armor Reduction for 4 seconds
    Mana Cost: None
    Cooldown: None
    In-game Description: Gives an x% chance on its attack to deal 2x of his attack damage and reducing the enemies' armor by 50% for 4 seconds.
    How the spell works: It gives the attacker an x% chance (Make the chance be modifiable by me) on its attack to deal 2x of its attack damage and reducing the enemy unit's armor by 25% that lasts for 4 seconds.


    Would be adding more here for my request. They are actually many but I forgot most of them. Keep looking at this post of mine!
     
    Last edited: Jan 24, 2014
  10. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
    Hell_Master
    Honestly, the main issue in the request is to trace the base armor, I'm currently hunting for an already existing spell that allows one to reduce armor by % if I wish to make it in GUI, I recall such libraries which can estimates unit's armor value, but can't be accurate tho.
    EDIT : I remember now, Devotion Aura with little trick should do, I'll consider your request shortly!
    EDIT2 : Oh yeah, it needs a Damage Detection System, did you have one used in your map? If not, I'll give you a list to choose.
     
  11. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    @Daffa : why don't you ask me :)
    The script is coming.

    Code (vJASS):
        function GetArmor takes unit u returns real
            local real life = GetWidgetLife(u)
            local real life2
            local real x = GetUnitX(u)
            local real y = GetUnitY(u)
            local unit v = CreateUnit(Player(15), DUMMY_ID, x, y, 0)
            local real test = 10
            if life > 200 then
                set test = 100
            endif
            call UnitDamageTarget(v, u, test, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, null )
            set life2 = life - GetWidgetLife(u)
            call RemoveUnit(v)
            set v = null
            call SetWidgetLife(u, GetWidgetLife( u ) + life2)
            if (life2 > test) then
                return (-1*(test - life2 ) ) / ( life2 * ARMOR_CONSTANT)
            else
                return ( test - life2 ) / ( life2 * ARMOR_CONSTANT )
            endif
        endfunction


    Just switch DUMMY_ID by the rawcode of a dummy unit with no model :)


    @HellMaster : 25% or 50% XD ?
     
  12. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,512
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    Well, I am actually to use this spell on my project but the reworked version does not have yet.

    Well, you could give me a list of choice then.
     
  13. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    Btw I suggest using the DDS by looking_for_help ^^
     
  14. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,512
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    Okay, I would just be going for lfh's DDS and sorry for the misinterpretations of my request. It is actually 25% not 50%.

    And GUI please.
     
  15. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
  16. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    he said LFH's, daffa..
     
  17. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,330
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    To get the armor of a unit efficiently JASS is needed.
    But this function can be done in GUI with custom script like this :
    • Untitled Trigger 002
      • Events
      • Conditions
      • Actions
        • Custom script: endfunction
        • Custom script: function GetUnitArmor takes unit u returns real
        • Custom script: local real life = GetWidgetLife(u)
        • Custom script: local real life2
        • Custom script: local real x = GetUnitX(u)
        • Custom script: local real y = GetUnitY(u)
        • Custom script: local real v = CreateUnit(Player(15), INSERT_THE_RAWCODE_OF_THE_DUMMY_UNIT, x, y, 0)
        • Custom script: local real test = 10
        • Custom script: if life > 200 then
        • Custom script: set test = 100
        • Custom script: endif
        • Custom script: call UnitDamageTarget(v, u, test, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, null)
        • Custom script: set life2 = life - GetWidgetLife(u)
        • Custom script: call RemoveUnit(v)
        • Custom script: set v = null
        • Custom script: call SetWidgetLife(u, GetWidgetLife(u) + life2)
        • Custom script: if life2>test then
        • Custom script: return (-(test-life2)/(life2*ARMOR_CONSTANT_IN_THE_GAMEPLAY_CONSTANT_BASE_IS_0.06)
        • Custom script: else
        • Custom script: return ((test-life2)/(life2*ARMOR_CONSTANT_IN_THE_GAMEPLAY_CONSTANT_BASE_IS_0.06)
        • Custom script: endif
        • Custom script: endfunction


    @Rheiko : There is LFH in Daffa's post
     
  18. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    yes, i know
     
  19. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,731
    Resources:
    28
    Packs:
    1
    Maps:
    8
    Spells:
    17
    Tutorials:
    2
    Resources:
    28
    Okay, I see, I'll do the request Tomorrow, pretty late here already.
     
  20. Mythic

    Mythic

    Joined:
    Apr 24, 2012
    Messages:
    7,781
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    Hey, anyways, for Bribe's Damage Engine, you can check abilities by add-ons to the system. Though it might be pretty hard to understand(because without the Damage Mod, you have to add it manually), as I stalled for like almost a year before using it to its best capabilities.
     
Thread Status:
Not open for further replies.