• 🏆 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!
Ofel
Reaction score
31

Profile posts Latest activity Postings Experience Albums Resources About

  • If you need the real distance for computations, you cannot optimize out the SquareRoot call.

    The SquareRoot in the distance function is only removable if all you need to do is compare the distance to some arbitrary value.

    An example:

    if SquareRoot(dx*dx + dy*dy) < 100 then
    // code
    endif

    This can be optimized to:

    if dx*dx + dy*dy < 10000 then
    // code
    endif

    However, if we need the distance so we can compute some arbitrary quantity like damage dealt, the SquareRoot cannot be optimized away.
    Belum, masih diskusi peraturan ama batas2 spell2nya, lomba nya membuat Spell GUI.
    Wow, you're an interdimate indonesian spell maker XD
    Anyways, could you accept my frend request?
    So you used Indexed Array? Yes,it was efficient, though Linked List is much better :D
    Hey you're a good spell maker; could you give me tips on how you use counters to add artificial waits to your spells?
    Short Review:
    function LevelInit is useless.You can just use function for a one-liner formula.
    Example:
    You want a damage 15/30/45 every level.You can just use:
    function GetDamage takes integer lvl returns real
    return 15 * lvl
    endfunction

    Replace IsUnitAliveBJ with GetWidgetLife(unit) > 0.405
    or
    IsUnitType(unit, UNIT_TYPE_DEAD) or GetUnitTypeId(unit) == 0

    SquareRoot((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y)) >= SLASH_MIN_DISTANCE)
    should be
    (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y)) >= SLASH_MIN_DISTANCE * SLASH_MIN_DISTANCE

    call SetUnitTimeScalePercent(this.caster, SLASH_ANIMATION_SPEED)
    ->
    call SetUnitTimeScale(this.caster, SLASH_ANIMATION_SPEED * 0.01)

    instead of using:
    else
    if SomeCondition then
    just use
    elseif SomeCondition then

    if (IsUnitAliveBJ(this.caster) and IsUnitAliveBJ(this.target)
    You can move that outside their blocks.
    Like this:
    if (IsUnitAliveBJ(this.caster) and IsUnitAliveBJ(this.target) then
    if SquareRoot((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y)) >= SLASH_MIN_DISTANCE) then
    //Actions
    else
    //Actions
    endif
    else
    //Actions
    endif
    Oh and about the spell,please post the code.My only approach there is the code,and not what the spell looks like
    yup...i dont neeed the spells like in anime....just do any spells that pass by in your mind...:D
    Damn I can't upload it to THW Pastbin its take too much memory But maybe i can upload it tommorow
    Ofel its not are too night for me coz i'm nocturnal creature
    and aahh i really alonely here :/
    ----------
    When you will get plenty of free time??
    ----------
    On weekend
    but if in Monday i have presentation i don't have time
    oh yah
    and
    edit
    I can't waste my time more than 4 hour standing in front of my PC (in School Day :p)
    But in weekend i can :p
    I have a reason i not want to study it now
    1.I real busy with my real life in school
    2.I can't waste my time more than 4 hour standing in front of my PC
    3.I do my group homework outdoors
    ----------
    Damn i am actually want to give this after you get approved spell, damn you :D Don't forget for feedback!!!
    ----------
    BTW did you want to say damn again??
    Like all hanyō, Inuyasha turns completely human once a month (barring one incident in Mount Hakurei due to unique circumstances); in his case, during the new moon. On the night of the new moon his hair turns black, his eyes turn brown, he loses his yokai abilities and attributes, and can only use Tessaiga in its katana form. Only Inuyasha's friends and a few others know his secret as Inuyasha tries to stay hidden during the new moon.
    If Inuyasha's life is in danger and the Tessaiga is out of reach, his latent yōkai blood takes over. When transformed, Inuyasha's eyes turn completely red and his pupils become blue slits (similar to those of Sesshomaru and the Inu no Taisho's true yokai forms); ragged purple stripes appear on his cheeks, thin black marks outline his eyes, and his fangs and claws lengthen. In this form, Inuyasha is capable of utilizing his full physical yokai strength, which was enought to destroy Goshinki and Kentomaru in a single hit each and cut throught Ryukotsusei's "rock-hard skin"), and his yoketsu (after cutting it) is strong enough to erode Sesshomaru's Meido Zangetsuha after cutting his own yoketsu with the Tessaiga. However, because yoki is toxic to both humans and hanyos, Inuyasha's human body and mind cannot handle the power he inherited from his father. With every subsequent transformation, Inuyasha's intelligence diminishes, he becomes increasingly irrational and aggressive, and this form becomes easier to trigger and harder to come out of. Not only his mental state, but Inuyasha's hanyo body is also unable to fully cope with the stress of his full yokai strength, meaning that if left unchecked, Inuyasha will continue fighting until his body either gives out or is destroyed by a stronger opponent.
    Inuyasha used a shard of the Shikon no Tama to strengthen the Tessaiga's power, an effort which backfired when the impure powers of the shard flowed through Tessaiga, causing Inuyasha to transform. Kagome, seeing Inuyasha's predicament, ran to him and her embrace purified the shard, leaving Inuyasha in a purified version of his yōkai form. In this form, he retained the stripes, eye markings, and pronounced fanges and claws of his yōkai form, but his eyes remained unchanged and he retained his self-awareness. His yōki was increased exponentially, allowing him to enhance the Tessaiga's Kongosoha's barrier-piercing effect with an intensity far superior to previous usage. After the shard was removed from the Tessaiga, Inuyasha reverted to his hanyō self.
    <span style="font-size: 18px">* Sankon Tessō(散魂鉄爪 lit. Soul-Scattering Iron Claws, "Iron Reaver Soul Stealer" in the English dub):</span> By channeling his yoki through his claws, Inuyasha can increase his claws' range and strength to cut though objects and demons deeper than logically possible, allowing him to destroy weaker demons many times his size in one hit. Despite being Inuyasha's most rudimentary yoki-powered attack, it is still strong enough to destroy weaker demons even if they are enhanced by the Shikon Jewel, as shown when he easily disposed of the Mistress Centipede.Rumiko Tahakashi stated in an interview that Inuyasha's full-powered Sankon Tesso is strong enough to cut through an industrial steel support beam. In his yokai form, his Sankon Tesso becomes crimson-colored and is strong enough to cause shallow cuts to daiyokai-level yokai, as shown when he battled Ryukotsusei.
    <span style="font-size: 18px">* Hijin Kessō (飛刃血爪 lit. Flying Blade Blood Claws; "Blades of Blood" in the English dub)</span> : A ranged version of the Sankon Tesso. By dipping his claws in his own blood and channeling his yoki through his claws, Inuyasha can sling his yoki-infused blood at his enemies in the form of multiple, red shurikan-like crescents. Because it requires his own blood to attack, Inuyasha only uses the Hijin Kesso as a last resort to catch his opponents off guard, or if they are too fast to land a direct attack/employ ranged attacks. While he prefers taking blood from an already open wound, Inuyasha can draw blood by digging his nails into his palms.
    <span style="font-size: 18px">* Time Travel:</span> By jumping down the Bone Eater's Well, Inuyasha can travel back and forth five hundred years to and from the future. In episode four among others, Inuyasha traveled to Kagome's time without the aid of a jewel shard. Others besides Kagome and Inuyasha are unable to travel through the well, as shown when Shippo attempts to go through the well but fails. In episode eleven, Sota (Kagome's younger brother) attempts to go down the well to call Inuyasha for help, and after a while InuYasha comes through the well to help (though for some reason, in episode four, Yura was able to send her hair through the well; possibly because Yura'a hair was tied to Kagome and Kagome brought it with her through the well).
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top