• 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.

Advanced resources like in WOW

Status
Not open for further replies.
Level 10
Joined
Dec 17, 2011
Messages
355
Hi!
I going to make custom resources like
Holy Power and Runes...(like in WOW)
There are no problem in the triggering,
but i dont have a clue how to display them
properly on the screen. I dont want to
show them on a Multiboard, nor instead
of the regular "lumber""gold" resource stuff.

I'd like to place icons or a diagram at the bottom,
or left edge or elswhere on the screen to show the
current amount of the resource.
Just dont know how to do it. Whith a special effect or what?
Oh and it should not couse desync.

Thnx!
 
Using on-screen buttons is only possible when you have a camera locked on a unit in multiplayer.

Why?
Because on-screen buttons use trackables/units and move them around to appear in front of the game camera. For this, you need to use GetCameraEyePosition() and GetCameraTargetPosition() to do the vector maths.
However, GetCameraEyePosition() and GetCameraTargetPosition() are not synced in multiplayer and are not updated as frequently as in singleplayer.
This means that the only way to get synced camera data in multiplayer is by *knowing* where the camera is. And this is only possible when you use a fixed/locked camera.

long story short:
- possible in singleplayer
- possible in multiplayer with locked cam
- not possible in multiplayer without locked cam

What's wrong with using a multiboard?

Another idea is using ability buttons to show the numbers or changing the portrait model to have a number inside (requires some modelling skills though).
You could also use custom bar models like this one and attach it to the unit: http://www.hiveworkshop.com/forums/models-530/progressbar-v2-223392/?prev=search=bar&d=list&r=20
 
Status
Not open for further replies.
Top