Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (alibaba), 3,525 guests, and 18 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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