• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Few problems

Status
Not open for further replies.
Level 1
Joined
Apr 23, 2013
Messages
6
Theres not common situation so I'l explain first:
I'm not modder, but I trying to use W3 Editor as support tool while writing big scenario.
Busically what i trying to do - make big map with many units that make prescripted movements (its most easy way for me to control many characters and see who doing what at what particular time).

Maybe theres someone who knows w3 scripting well and who can help with some issues?

For example:
1) I need to make floating texts that moves near walking unit.
2) Hide all game interface (exept mouse cusor, minimap and timer).

Can someone please help me and tell how to script this?

(sorry, its right place to ask or i better move topic to World Editor Help Zone?)
 
Have you tried overwriting the paths for the UI with a blank file such as a readme.txt? I have not tried this but it would be where I start.

When you say floating text "near" a walking unit do you mean over head or nearby? You should be able to create floating text over the head of a unit and offset the x,y,z coordinates as needed. I don't do jass so if you don't want GUI I probably am no help.
 
Level 1
Joined
Apr 23, 2013
Messages
6
Have you tried overwriting the paths for the UI with a blank file such as a readme.txt?

Just tryed. It replace texture with green one.

When you say floating text "near" a walking unit do you mean over head or nearby? You should be able to create floating text over the head of a unit and offset the x,y,z coordinates as needed.

It place text near unit's head, but problem is - when unit walk, floating text stays. And I need to move text with unit.

Anyways, thanks for trying to help!
 
1) Use a periodic trigger (with 0.03 period) to move the floating text to the unit
2) Try using images that are transparent.

Ya, that will do it. I'm at work but I will try to write it out from memory.

-Event
Periodic Event- time elapsed 0.03
-Conditions
-Actions
  • Floating Text - Create floating text that reads "text" at (Position of (Target Unit of Ability Being Cast/Attacked Unit [Depending on your event])) with Z offset "your offset value", using font size 8.00, color (80.00%, 80.00%, 80.00%), and 0.00% transparency
  • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
  • Floating Text - Change (Last created floating text): Disable permanence
  • Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
  • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
ok, so I tried from memory then I googled it. http://www.thehelper.net/threads/natural-floating-text.137757/
 
  • Spawn
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set TempLoc = Position of Unit
      • Floating Text - Create floating text that reads "text" at (TempLoc) with Z offset "your offset value", using font size 8.00, color (80.00%, 80.00%, 80.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: set udg_TempLoc = null
Remember to fix leaks. Also, it's 'Every 0.03 seconds of game time', not 'time elapsed 0.03'.
 
Last edited:
Status
Not open for further replies.
Top