• 🏆 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!
Doomlord
Reaction score
148

Profile posts Latest activity Postings Experience Albums Resources About Medals

  • Reputation (+4):
    (Post) (+4) Thats a new discovery, me myself dont know its 400 MS max in but not 522.
    Well, I suppose it doesn't generate "extra" triggers, but it does generate triggers. You can circumvent it with modules, but some people may not prefer that.

    All in all, it isn't a big deal if you use interfaces (since they are convenient for OOP), but generally we don't recommend them because of the code behind it. ;)
    Luck shone upon me today; upon killing a night spider, it dropped a shadow silk hood! ;p

    What it does is it makes roughly 50% of the monsters in dungeons unaggressive, as the hood grants passive invisibility (of which the other half can detect, unfortunately).

    The rough chance to get it is 1% (for the chance to encounter that spider) x 1% of the actual chance to have it as a drop from it, effectively making the overall chance 0.01%. :)

    (And in case it wasn't clear, it's RS-related. ;p)
    Just to make sure you know it's a joke :)
    Anyway, I'm bored and need some idea to get to work with.
    Enjoy that title. ;p You got it the way it should've, I have to grind weeks for it (and still not get it).
    okay then, I just fix some shit flaws I don't saw before :D
    and update it a few minutes ago
    When will the Merit Award will come to your profile?
    I'm hungry that I need to eat an award now! Or else I'll eat your Moose :ogre_hurrhurr:
    No need to apologize, you're not rude at all. Thanks for all your help! It has kept me going and I have learned a lot.
    Hey, chúc mừng cậu đã được huy chương :D. Chúc trễ do vật lộn với đám JASS == (tự học kô hướng dẫn, đau đầu lắm cơ ==).
    Anyway, cậu tìm giùm mình xem tại sao cái trigger này nó kô hoạt động vậy
    function Trig_Boss_Respawn_Conditions takes nothing returns boolean
    if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
    return false
    endif
    return true
    endfunction

    function Trig_Boss_Respawn_Func002002003001 takes nothing returns boolean
    return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
    endfunction

    function Trig_Boss_Respawn_Func002002003002 takes nothing returns boolean
    return ( GetOwningPlayer(GetFilterUnit()) == Player(11) )
    endfunction

    function Trig_Boss_Respawn_Func002002003 takes nothing returns boolean
    return GetBooleanAnd( Trig_Boss_Respawn_Func002002003001(), Trig_Boss_Respawn_Func002002003002() )
    endfunction

    function Trig_Boss_Respawn_Loop takes nothing returns nothing
    local integer i
    local real r
    local integer i2
    local texttag tt
    set i = 0
    set r = 0.00
    set udg_GetLocalPlayer=GetLocalPlayer()
    if GetLocalPlayer() == GetOwningPlayer(GetEnumUnit()) then
    set i = ( 25 * GetUnitLevel(udg_tempUnit) )
    call CreateTextTagUnitBJ( ( "+|cffffcc00" + ( I2S(i) + "|r" ) ), GetEnumUnit(), 0, 10.00, 100, 100, 100, 0 )
    set tt = GetLastCreatedTextTag()
    call SetTextTagVelocityBJ( tt, 64.00, 90 )
    call SetTextTagPermanentBJ( tt, false )
    call SetTextTagLifespanBJ( tt, 1.00 )
    call SetTextTagFadepointBJ( tt, 0.50 )
    call AdjustPlayerStateBJ( i, GetOwningPlayer(GetEnumUnit()), PLAYER_STATE_RESOURCE_GOLD )
    set i2 = 1
    loop
    exitwhen i2 > GetUnitLevel(udg_tempUnit)
    set r = ( ( r * 1.50 ) + 75.00 )
    set i2 = i2 + 1
    endloop
    call CreateTextTagUnitBJ( ( "+|cffff00cc" + ( I2S(R2I(r)) + "|r" ) ), GetEnumUnit(), 0, 10.00, 100, 100, 100, 0 )
    set tt = GetLastCreatedTextTag()
    call SetTextTagVelocityBJ( tt, 64.00, 0.00 )
    call SetTextTagPermanentBJ( tt, false )
    call SetTextTagLifespanBJ( tt, 1.00 )
    call SetTextTagFadepointBJ( tt, 0.50 )
    call AddHeroXPSwapped( R2I(r), GetEnumUnit(), true )
    endif
    set tt = null
    endfunction

    function Trig_Boss_Respawn_Actions takes nothing returns nothing
    local location u
    local group ug
    set udg_tempUnit = GetTriggerUnit()
    set ug = GetUnitsInRangeOfLocMatching(600.00, u, Condition(function Trig_Boss_Respawn_Func002002003))
    call ForGroupBJ( ug, function Trig_Boss_Respawn_Loop )
    call DestroyGroup(ug)
    call TriggerSleepAction( 120.00 )
    set u = GetUnitLoc( udg_tempUnit )
    call ReviveHeroLoc( udg_tempUnit, u , true )
    call RemoveLocation(u)
    set u = null
    set ug = null
    set udg_tempUnit = null
    endfunction

    //===========================================================================
    function InitTrig_Boss_Respawn takes nothing returns nothing
    set gg_trg_Boss_Respawn = CreateTrigger( )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Boss_Respawn, Player(11), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Boss_Respawn, Condition( function Trig_Boss_Respawn_Conditions ) )
    call TriggerAddAction( gg_trg_Boss_Respawn, function Trig_Boss_Respawn_Actions )
    endfunction
    Your welcome, and now comes our award which we will receive for a couple of years >:)
    Of course! I think I might have a solution, if you are interested you can check the Forum. Its Jass so I'm in over my head as it is.
    Thanks man! I really appreciate your help. I really don't expect anyone to make my maps for me but having just one person who can point you in the right direction makes a huge difference. lol, Have you seen my scripts & triggers post? over 35 comments and no help. Where are Maker and DISMF?
    Well, I will certainly take a look. Thanks man!
    [edit]
    I couldn't really see much of a difference. Its ok though.

    One quick question, how do I learn jass commands. For example, I want to get the real Z of a unit. GetUnitZ(udg_Variable) returns the error undeclared and something about null. Is there a list of commands?
    Test map

    Did you have any luck? I was thinking maybe I need to GetUnitFacingAngle if such a command exists. I tried the GUI version but that had no effect.
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top