Add more skills

Posted By: upsidedownman

Add more skills - 12/28/08 02:14

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?
Posted By: DJBMASTER

Re: Add more skills - 12/28/08 03:04

look at structs
Posted By: upsidedownman

Re: Add more skills - 12/28/08 03:46

Ahh thanks!!
Posted By: GamerX

Re: Add more skills - 12/28/08 04:10

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
Posted By: Spirit

Re: Add more skills - 12/28/08 07:59

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.
Posted By: MrGuest

Re: Add more skills - 12/30/08 01:02

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
© 2023 lite-C Forums