Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/20/26 07:00
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Frederick_Lim, TipmyPip), 5,129 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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