Floating text start-point following a unit?

  • Thread starter Thread starter Nikolae
  • Start date Start date
N

Nikolae

Guest
I have this trigger that is supposed to heal the unit for a certain amount every 3 seconds, but also, create floating text above the unit with the amount healed. However, the floating text only ever appears at the location where the unit was when it had the spell cast on him. If the unit moves, the floating text stays where it was.

It appears and disappears properly, and everything, it just doesn't start at the right location.

Code:
Renew
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Renew 
    Actions
        Set SpellLVL = (Level of (Ability being cast) for (Casting unit))
        Set SpellReal = ((Real((Intelligence of (Casting unit) (Include bonuses)))) x (Real(SpellLVL)))
        Set SpellReal = (SpellReal / 10.00)
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Wait 3.00 seconds
                Advanced - Heal (Target unit of ability being cast) for SpellReal hitpoints
                Floating Text - Create floating text that reads (String((Integer(SpellReal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
                Floating Text - Change the fadepoint of (Last created floating text) to 1.00
                Floating Text - Change the lifespan of (Last created floating text) to 2.00
                Floating Text - Change permanent state of (Last created floating text) to Disable
                Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees

Any ideas?
 
It only lasts what, 2 seconds? If its really that bad reduce it. It may seem very short to have .5, but in fact .25 would still be visible. You can also reduce the wait to 1.5, and have 3 .5 waits with a 'Floating Text - Move' (if it exists) and move to the target.
 
NEVER use sleep actions in loops. Instead, use a polled wait, since 'regular' waits actually reset the trigger in the queue.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top