• 🏆 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!
Malhorne
Reaction score
45

Profile posts Latest activity Postings Experience Albums Resources About

  • Becoz, the meadows are near. The sound of the nearby stream attracts the moose. Such paradise the moose cannot resist going...
    Yeah, I greeted you earlier, just in case I can't log in the hive during Christmas.
    Yes, it was too much cut off, they could have just continued it no matter how many hours it will take because I do think it is near on its finished state also if you will notice.
    Hey yo! Have you seen, Nestharus took down his resources. Merry Christmas dude (Timezone:GMT+8 haha).
    D
    Finally I created something useful for my map:
    function Experience_GetLevel takes integer exp, integer level returns integer
    local integer i = 0
    loop
    set i = level*level*10
    if exp < i then
    if level > 1 then
    return level-1
    else
    return 1
    endif
    endif
    set level = level +1
    endloop
    return 0
    endfunction
    It's leveling system for the map, once you get more exp it checks if you go onto next level. It starts from current level so it would be more efficient.
    And it's all thanks to your tutorial :) (sorry I skipped a little to 5:3 – Loop block x) )
    D
    so my function is worthless coz there's already a function for it <.<
    I could've just put trigger3
    Events
    Player - Player 1 (Red) types a chat message containing get custom val as An exact match
    Conditions
    Actions
    Set asd = (Random unit from (Units currently selected by Player 1 (Red)))
    Custom script: set udg_str = I2S (GetUnitUserData(udg_asd))
    Game - Display to (All players) the text: str
    So depressing D:

    I know that trick because I know bribe.

    Edit: You could add the tutorial to your signature :)
    D
    Yay, I just made my first JASS thing ever. It's in GUI format though, don't hit me plz :(
    trigger1
    Events
    Conditions
    Actions
    Custom script: endfunction
    Custom script: function getcustomvalue takes unit u returns integer
    Custom script: set udg_u = u
    Set i = (Custom value of u)
    Custom script: return udg_i

    trigger2
    Events
    Player - Player 1 (Red) types a chat message containing set custom val as A substring
    Conditions
    Actions
    Unit - Set the custom value of (Random unit from (Units currently selected by Player 1 (Red))) to (Integer((Substring((Entered chat string), 16, (Length of (Entered chat string))))))

    trigger3
    Events
    Player - Player 1 (Red) types a chat message containing get custom val as An exact match
    Conditions
    Actions
    Set asd = (Random unit from (Units currently selected by Player 1 (Red)))
    Custom script: set udg_str = I2S (getcustomvalue(udg_asd))
    Game - Display to (All players) the text: str

    What ya say? :D
    D
    Sounds nice. Structs... no idea what those are :D

    Maybe I will use it. Dunno yet, time will tell :)
    D
    Thanks, I will advance in JASS slowly, since I will make my map in GUI, as I've coded it in GUI format for a year. It would be impossible to switch to JASS on that map.

    Damn, I can't give rep for tutorials :(

    Btw, will you talk anything about vJASS on the tutorial? I'm quite interested in that :3
    D
    Yes, I'm at the "III – What is a variable?" section. Just a question; I've used to having pl as player and unit group as ug, can I still keep it that way, or do I have to use p and g?
    Pretty much fine and just reached 4.2k post... I am really growing old here in Hive (maybe...). Anyways, watched Disney's Frozen Movie yesterday, it was fun!
    Great to know that! Now I am planning to make a map that gets at least 5/5, then I'll point to the impossible Director's Cut! Perhaps after a year I might achieve it! Who knows?
    Yes. If you look at the picture thread, you can see that I have eyeglasses.
    D
    Lol that avatar is awesome :D You made that yourself?
    Just copy the triggers and create the variables? What function do I call? For passive ability, can't trigger the CD animation too?
    So it is really possible to make cooldown by triggers? Wow. XD Sure, I could use this for the spell request. :) But only one ability will be triggered the cooldown.
    The story behind doge; wow, such sotry! cute doge... wow

    Sorry I didn't use an image, I'm feeling really laze, er... lazy today...
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top