Show Mana of a Unit As Floating Text

lario93

New Member
Reaction score
0
I'm using Mana Points as ATB Gauges from Final Fantasy 13, if you get the idea.
Say I have 3 ATB Gauges Full, I would have 3 Blue O's above my hero. If I use 2 ATBs then there would be 1 BLUE O left and 2 WHITE O's (representing 1 out of 3 ATBs left). How would I do this?

Thank you in advance!
 

jig7c

Stop reading me...-statement
Reaction score
123
Trigger:
  • Events
    • Every 1 second of game-time
    • Conditions
    • Actions
      • Set tempgroup = All units in playable map matching (matching unit mana equal to or greater than 1)
      • Pick every unit in tempgroup and do
        • loop
          • Set tempint = Current mana of (Picked unit)
          • Create Floating text that reads tempint over (picked unit)



something like that... above is a rough draft...
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
You'll need to explain what this is much more clearly. I have never played any Final Fantasy games, so I have no idea what you are trying to do.
 

lario93

New Member
Reaction score
0
You'll need to explain what this is much more clearly. I have never played any Final Fantasy games, so I have no idea what you are trying to do.

Say I have a skill called Attack. If I use it on a monster, it will drain 1 ATB point. If i have another skill called Bomb, and use it on a monster, it will drain 2 ATB points. ATB Points are turn points basically. One Turn consists of a unit having 3 ATB Points, let's say. The unit can use 3 Attacks (1+1+1) or an Attack and a Bomb (1+2). Every new turn allows you to start with 3 ATB Points again. I hope this clarifies things :)
 

jig7c

Stop reading me...-statement
Reaction score
123
do you want ATB points over unit's head or current mana over unit's head...
 

lario93

New Member
Reaction score
0

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> Um, I don't use vJASS, is it hard to implement?

You'd have to look at the instructions to see for yourself. I don't really know what you might consider "hard." :)
 

lario93

New Member
Reaction score
0
> Um, I don't use vJASS, is it hard to implement?

You'd have to look at the instructions to see for yourself. I don't really know what you might consider "hard." :)

Hey thanks the whole thing worked, but it shows the current amount of hit points I have, not mana, could this be changed?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> could this be changed?

Well, from the thread, it sounds like this is what you use:

//Track the last created unit's mana only
call AddBar(bj_lastCreatedUnit, false, true)
 

lario93

New Member
Reaction score
0
> could this be changed?

Well, from the thread, it sounds like this is what you use:

//Track the last created unit's mana only
call AddBar(bj_lastCreatedUnit, false, true)

It doesn't work :( It only shows HP
call AddBar(GetEnteringUnit(),true, true)
is what I have
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> call AddBar(GetEnteringUnit(),true, true)

Well, note that that is not the correct syntax to show mana....
 

lario93

New Member
Reaction score
0
Ok nevermind... If my mana is too low, there is no bar. Sorry for all the trouble, I think I can use this thing now :)
 
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