question about critical hits

Igor_Z

You can change this now in User CP.
Reaction score
61
I am not sure if it is possible but search trough the game interface...
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
cant you do it with the same hack as 90 degree cliffs? i think i saw that in there when i was scrolling down :/

yeah, though idk how to do it...it has this:
// CriticalStrike text tag data
CriticalStrikeTextColor=255,255,0,0~why are there 4 #'s? shouldn't it be 255,255,255?
CriticalStrikeTextVelocity=0,0.04,100
CriticalStrikeTextLifetime=5
the file is called miscdata and there is a few things telling you how to use it in this post: (btw its in 216199's comment)
http://www.thehelper.net/forums/showthread.php?t=124288
 

JM08

New Member
Reaction score
2
could i possibly get an example of how i would change the color by a trigger?
i'm not too great with making advanced triggers by scratch.
 

Viikuna

No Marlo no game.
Reaction score
265
Triggering a critical strike is not easy, unless you know what you are doing.

If you only want to change texttag colour, just modify miscdata. Its easier that way.

edit. If you want to trigger them, you should use some damage detection system.

This is how I am going to trigger my criticals:
JASS:
private function CriticalStrike takes nothing returns boolean
    local real damage=GetDamageAmount()
    local integer Type=GetDamageType()
    local unit source
    local unit target
    if Flag and Type==0 then
        set source=GetDamageSource()
        set target=GetDamageTarget()
        set Flag=false 
        if UnitProperties[source:Id].AttackCritical.isProc() then
            call UnitDamageTargetNormal(source,target,damage)
            call CriticalMsg("Critical: "+R2S(damage*2.),GetUnitX(source),GetUnitY(source),220,10,10)
        endif
        set Flag=true
        // Im not nulling source and target here
        // because I recycle my units
    endif
    return false
endfunction

private function init takes nothing returns nothing
    local trigger t=CreateTrigger()
    call TriggerRegisterDamageEvent(t)
    call TriggerAddCondition(t, Condition( function CriticalStrike ))
endfunction
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top