How do i make my damage appear in floating text?

Discussion in 'World Editor Help' started by a j j bones, Apr 13, 2007.

  1. a j j bones

    a j j bones New Member

    Ratings:
    +3 / 0 / -0
    i want to make it so watever my hero hits the damage is displayed as floating text that fades out above the creeps head, how do i do it? :D
     
  2. gref

    gref New Member

    Ratings:
    +33 / 0 / -0
    The main trigger:

    PHP:
    Floating Text
        Events
        Conditions
            
    ((Damage sourceis A HeroEqual to True
        Actions
            Floating Text 
    Create floating text that reads (String((Integer((Damage taken))))) above (Triggering unitwith Z offset 0.00using font size 8.00color (100.00%, 100.00%, 100.00%), and 0.00transparency
            Floating Text 
    Change (Last created floating text): Disable permanence
            Floating Text 
    Change the lifespan of (Last created floating textto 2.00 seconds
            Floating Text 
    Change the fading age of (Last created floating textto 0.00 seconds
            Floating Text 
    Set the velocity of (Last created floating textto 64.00 towards 90.00 degrees
    The two triggers that make sure all the units are in the trigger:
    PHP:
    Initialise Floating Text
        Events
            Map initialization
        Conditions
        Actions
            Unit Group 
    Pick every unit in (Units in (Entire map)) and do (Actions)
                
    Loop Actions
                    Trigger 
    Add to Floating Text <genthe event (Unit - (Picked unitTakes damage)
    PHP:
    Add Units to Floating Text
        Events
            Unit 
    A unit enters (Entire map)
        
    Conditions
        Actions
            Trigger 
    Add to Floating Text <genthe event (Unit - (Entering unitTakes damage)


    Edit: Here's an example... http://shnurple.com/Map/General/Floating Text.w3x
     
  3. Sirroelivan

    Sirroelivan Gunnerkrigg Court

    Ratings:
    +95 / 0 / -0
    Or you could give your hero an ability based on critical strike with 100% chance to deal 1 times normal damage
     
  4. a j j bones

    a j j bones New Member

    Ratings:
    +3 / 0 / -0
    ok thanks that will work

    thank you to gref
     
  5. Juliano

    Juliano New Member

    Ratings:
    +8 / 0 / -0
    I don't know but a long time ago a guy in this forum said that Critical ignores armor, so if is that true it will not work well...

    Someone correct me if I'm wrong

    Bye!
     
  6. a j j bones

    a j j bones New Member

    Ratings:
    +3 / 0 / -0
    o jeez i hope not thatll be a problem... can someone tell me somthing this for sure
     
  7. ArmedCitizen

    ArmedCitizen Kisses Cats

    Ratings:
    +197 / 0 / -0
  8. Chocobo

    Chocobo White-Flower

    Ratings:
    +410 / 0 / -0
    Critical Strike floating text ignores armor, it just shows the damage multiplier x damage from dices. But it doesn't ignore armor for damage dealt.
     

Share This Page