Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | chip programmers | 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