|
0 registered members (),
950
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
[solve] Lite-c skill100 above
#470269
01/06/18 06:57
01/06/18 06:57
|
Joined: Feb 2003
Posts: 146 RP China
20BN
OP
Member
|
OP
Member
Joined: Feb 2003
Posts: 146
RP China
|
Hi, all How to define EMTITY sub-functions over 100 skill? (skill[0]-skill[99]) I need more skills (7000 above).
Last edited by 20BN; 01/13/18 16:18.
|
|
|
Re: Lite-c skill100 above
[Re: 20BN]
#470278
01/06/18 11:53
01/06/18 11:53
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
you could create arrays or structs for each entity and save a pointer for them in one skill. This way you can have unlimited data for each entity.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Lite-c skill100 above
[Re: Superku]
#470287
01/07/18 12:21
01/07/18 12:21
|
Joined: Feb 2003
Posts: 146 RP China
20BN
OP
Member
|
OP
Member
Joined: Feb 2003
Posts: 146
RP China
|
@Superku Thank you so much. All entities was unlimited now. But other void how to point entity custom skill?
void attack()
{
/*
HOW TO POINT test_me'S more.custom_value[x] IN THIS FUNCTION?
*/
}
void movement(ENTITY* target_ent, var num......)
{
.....
}
action test_me()
{
MORESKILL* more = (MORESKILL*)my.entMoreSkill;
if(!more) my.entMoreSkill = more = moreSkillCreate();
more.custom_value[x] = 137.1;
......
while(my)
{
.....
movement(my, more.custom_value[x].....);
wait(1);
}
}
Last edited by 20BN; 01/07/18 12:24.
|
|
|
Re: Lite-c skill100 above
[Re: Superku]
#470327
01/08/18 15:12
01/08/18 15:12
|
Joined: Feb 2003
Posts: 146 RP China
20BN
OP
Member
|
OP
Member
Joined: Feb 2003
Posts: 146
RP China
|
@Superku Amazing!!! Big thanks! I PM some message to you.
Last edited by 20BN; 01/08/18 15:13.
|
|
|
|
|
|