Author Topic: Floating Tags  (Read 1218 times)

Offline Ranakastrasz

  • Captain
  • ***
  • Posts: 53
    • View Profile
Floating Tags
« on: December 02, 2021, 12:28:15 am »
Is there a way for a script to add a floating tag like xPiratez or The Xcom Files adds for Fire, Stun, and bleeding, or is that all hardcoded?
And, if not, is there another convenient way to tag units?

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Floating Tags
« Reply #1 on: December 02, 2021, 08:52:37 am »
As far as i know, via scripts you can recolor unit figure or change sprite on the way.
As example, i use that to show "frozen" status, turning unit into blue.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Floating Tags
« Reply #2 on: December 03, 2021, 03:36:23 am »
OXCE allows you to do this for unconscious units very easily with BigStunIndicator, BigWoundIndicator, BigBurnIndicator, BigShockIndicator, FloorStunIndicator, FloorWoundIndicator, FloorBurnIndicator, FloorShockIndicator. https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Reserved_sprite.2Fspritesheet_names

Code: [Select]
extraSprites:
  - typeSingle: BigStunIndicator
    fileSingle: Resources/Corpse Indicators/Zzz.png

As for standing units, I wouldn't know.