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
3 registered members (Joey, flink, AndrewAMD), 1,226 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Add more skills #243111
12/28/08 02:14
12/28/08 02:14
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Is there any way to add more skills or do something like skills were i can put a value to something for each entity like a skill?

Re: Add more skills [Re: upsidedownman] #243113
12/28/08 03:04
12/28/08 03:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
look at structs

Re: Add more skills [Re: DJBMASTER] #243114
12/28/08 03:46
12/28/08 03:46
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Ahh thanks!!

Re: Add more skills [Re: upsidedownman] #243115
12/28/08 04:10
12/28/08 04:10
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
not sure if you are allowed to alter atypes but if you are go into the entity struct and add somthing like
var newskill[20];

and you got yourself more skill under newskill but you have to do it like this
#define test newskill[1] instead of #define test newskill1


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: Add more skills [Re: GamerX] #243125
12/28/08 07:59
12/28/08 07:59
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You can not add new skills to the ENTITY struct because those stricts are fixed and can not be altered by the user. But you can put the entity together with some additional skills into a new struct. Even easier, you can use local variables in the entity action, they are like skills, so in almost all cases you dont even need the current 100 skills.

Re: Add more skills [Re: Spirit] #243447
12/30/08 01:02
12/30/08 01:02
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
depending on the values you're storing, look at bitwise in the manual, if they're small enough values, you can store multiple skills as single skills

hope this helps


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