Gamestudio Links
Zorro Links
Newest Posts
NOMAX undeclared identifier.
by qin. 01/09/26 00:20
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 2,999 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Namitha_NN, Syndrela, agasior, mosfet, MonsterX
19188 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Player properties #172193
12/11/07 08:07
12/11/07 08:07
Joined: Dec 2003
Posts: 179
Chameleon_Man Offline OP
Member
Chameleon_Man  Offline OP
Member

Joined: Dec 2003
Posts: 179
Hi, I would like to create a player property like so...

Code:
action player1 {
player = me;
var property;
}

function blah {
player.property = 10;
...
}



I don't think this syntax is correct, but I know there's a way of doing this. How?

Thanks a ton,
-Mike

Re: Player properties [Re: Chameleon_Man] #172194
12/11/07 09:57
12/11/07 09:57
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
You would have to use skills to do this. Each entity has 1-100 "skills", which are storage locations in each entity ^^

Code:

player.skill1 = 10;



or, create a define to "name" the skill, like:

Code:

define my_property, skill1;
..
player.my_property = 10;



Hope it helps
Adoado


Visit our development blog: http://yellloh.com

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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