• 🏆 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!
Nightmare Moon

Profile posts Latest activity Postings Experience Resources About

  • Watched first episode...

    I'm scared on what I'm becoming...

    If you find a mlp 'too much pie' gif, (Episode #1) I'll use it for my avatar.
    To... like what? I've never actually watched a Pony episode, as I don't know what TV station it airs on...

    (Eg: Cartoon Network, TBS, Nickelodeon, etc...)

    I'd watch one if you told me where they are :p
    Distance is the distance where we target it, test the spell and cast it in a short range and long range
    You can "feel" the difference and where it stops
    For your spell, you doesn't use Speed = Distance / Formula, that's why anywhere you target, the distance will be the same whereas my spell formula, your unit will get to the targeted location, EXACTLY, it doesn't offset pre-setly just like your spell, always goes to 1000 range, but the player targets in a short range like 400 or 600 perhaps
    Haha to hell with it that I'm going to give up, NOT A CHANCE :)
    This is defskull, over. defskull never quits :)
    I'm gonna eat for awhile, hey, gotta fill up my energy :)
    (F*** FORMULA SO DAMN HARD, BEEN WORKING ALL DAY!, but if I succeed... I'd be proud hehe)
    Still having the problem? If you're going to do it in vJASS then I won't check the GUI version.

    The compile error is due to mistyped returns. You typed "retuns".

    A few notes about the vJASS thing:
    *Wrap things inside a scope.
    *Use private and constant definitions in functions and variables.
    * Don't use locations, use coordinates.
    from the vJASS OOP tutorial on the tut sections and then asking TRD about the things I don't understand...
    yeah he started with the structs... I found it hard too on the start (The_Reborn_Devil forced me to learn structs on my very first spell resource)
    Dr. Boom's method is better than yours, though since its vJASS, when using timers, its more advisable to just use T32 or TimerUtils, than creating and destroying timers... and you won't even be needing the hashtable if you do that...

    in your case, I would suggest using T32...

    also, on your code, you made the function Check, but never used it... and anyway, it won't work with the timer event...
    Well again^^ there is more then one way to code vJass. I only now my way I gave you, I didn't work the other ways, so I can't say something to it sorry^^

    But in my way the first one is wrong because at all you just need to create one local timer, because the create method starts the timer, so the Loop method will run every 0.03 or 0.04 seconds
    ----------
    But what if i did the spell with my first version of JASS code, would it be that wrong?
    ----------
    What you mean with this?^^
    Also well, you don't need to rep me again, it's cool when I can help someone with vJass.

    Note: Well learning vJass in just 2 or 3 days would be stupid anyway, because personally I can learn many things even now, vJass is at all this complex you can learn new things even after a year^^
    Yeah sorry my fault ^^

    call TriggerAddCondition(t,Condition(function cast))

    Must look like this then^^
    Well as I said there are more ways to use vJass. For my way yes you just need one to store the timer but this isn't a big problem at all
    Moin moin =)

    Well good that you ask me about the vJass stuff^^

    I send you a little basic struct how the vJass should look like where you can learn from a little.

    If you have more questions, just ask me
    But I think I'm gonna be "experimenting" this action because it requires the uses of percentual value (Set Unit Animation to X% value), do you mind if I take some time ?
    For things like that, I always use Speed = Distance / Time
    In this case, we refer the value we need to find is Time, where Distance can be calculated from a variable of action using the "Math - Distance Between Points" and Speed, is the speed of your hero (like offset by 5.00 per 0.03 second) which makes its real speed is 165 range/second (occurs once every 0.03 second, to make it per second, we multiply it by 33 (to make it 0.99 = near to 1 second))

    Hmmm, about the test map, I'll look into it later, okay ?
    Well, good that it seems to be that you understand English well. I'm German and I had my problems with these tutorials so I learned it myself with some help of good friends.

    Personally I don't recommend to learn vJass with tutorials. The best way how to learn is picking up one or two friends with vJass knowledge and earn with them. Then faster as you can see you start with creating your own spell and upload it on hive.

    Then people comes up and say points to it and so! you learn vJass, not from stupid tutorials where you just need to read a lot of text and at the end you don't get this what you want!!!

    Anyway I don't like Nestharus ... so he could send me what he wants, I wouldn't care about it, but this is personally -.-;
    Well this is a little bit complicated if you want make it correct with animation and movement at the same time. I can only show you an example in Jass (don't know if there are better ways with GUI^^)


    // We need to set this first, else the direction of the movement can be wrong
    local real xx = GetUnitX(caster)
    local real yy = GetUnitY(caster)
    local real f = Atan2(y-yy,x-xx)

    // Now we move the unit
    set xx = GetUnitX(caster) + DISTANCE * Cos(f * bj_DEGTORAD)
    set yy = GetUnitY(caster) + DISTANCE * Sin(f * bj_DEGTORAD)

    call SetUnitX(caster,xx)
    call SetUnitY(caster,yy)

    Again this is the move way in Jass which doesn't interrupt the casters current animation (I tested it and this works)

    ====
    Well when you have problems with learning vJass, you can ask me and I can !TRY! to help ^^

    Greetings and Peace
    Dr. Boom
    Also there's another thing I have to say. Since I start to like your spell ideas at all, it would be cool if you would start with vJass now and leave GUI behind you.

    Well, I don't say this, because I personally hate GUI, but with your good ideas and the fact that's much more possible with vJass, it wouldn't be a fault if you would think about it =)

    Greetings and Peace
    Dr. Boom
    Moin moin =)

    [Omg what a crazy background here =S]

    Well my skills in GUI are nearby gone but from pure understanding I would say it's not correct, because when you use "(Terrain pathing at NW_Point3 of type Walkability is off) Equal to True" this means that the walkability is off, so it's not path able or?

    Greetings and Peace
    Dr. Boom
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top