Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Display player defines #289292
09/11/09 16:30
09/11/09 16:30
Joined: Feb 2009
Posts: 38
Germany
P
Phonech Offline OP
Newbie
Phonech  Offline OP
Newbie
P

Joined: Feb 2009
Posts: 38
Germany
It is possible to display an entity-specific variable, isn't it?

Code:
#define hp skill59

action player_act()
{
	player = me;
	my.hp = 100;
	while(player)
	{
                ...
		wait(1);
	}
}

PANEL* var_pan = 
{
	layer = 10;
	digits(5,5,"player.hp: %.f","Arial#15",1,player.hp); 
	flags = VISIBLE;
}



Yeah, ehm, the ingame output is "player.hp: 0". But why? Thanks for your advice!

Re: Display player defines [Re: Phonech] #289294
09/11/09 16:43
09/11/09 16:43
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
am not sure if i ever did that before but what you can do is, in action player, add:

var tests;

while(player)
{
tests=my.hp;

......

then use the var 'tests' in the digit parameter . . .

Re: Display player defines [Re: darkinferno] #289295
09/11/09 16:51
09/11/09 16:51
Joined: Feb 2009
Posts: 38
Germany
P
Phonech Offline OP
Newbie
Phonech  Offline OP
Newbie
P

Joined: Feb 2009
Posts: 38
Germany
Yes, I know that this works, but I remembering the old days with c-script... it was possible just to take the player.hp in digits().


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1