Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, 7th_zorro), 1,071 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
how to add skills more than 100? #330681
06/29/10 08:21
06/29/10 08:21
Joined: Mar 2009
Posts: 25
kholis Offline OP
Newbie
kholis  Offline OP
Newbie

Joined: Mar 2009
Posts: 25
i want to modify Glorious Combat game created by david lancaster. but almost 90 skills already used in this game. its only remain about 10 skills for me.

is it possible to add skills more than 100?

thanks.

Re: how to add skills more than 100? [Re: kholis] #330682
06/29/10 08:27
06/29/10 08:27
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
convert them to arrays, you can't have more skills.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: how to add skills more than 100? [Re: Helghast] #330775
06/29/10 18:19
06/29/10 18:19
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
you could create a struct with a couple of 'skills' and save a pointer to it in one of the enity skills.

Re: how to add skills more than 100? [Re: Hummel] #330779
06/29/10 18:52
06/29/10 18:52
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
structs in wdl ?

Re: how to add skills more than 100? [Re: kholis] #330781
06/29/10 19:22
06/29/10 19:22
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Let the entity create another entity.
Save the handle to the created entity in a skill:

you = handle(ent_create(dummy_mdl, nullvector, NULL);
if(you)
{
you.passable = on;
you.invisible = on;
my.skill91 = handle(you);
}

Now you can use the 100 skills of your dummy entity like this:

you = ptr_for_handle(my.skill91);
if(you){you.skill1 = foo;}

Untested, but you should get it.
Dirty hack, but it works like a charm. wink


no science involved
Re: how to add skills more than 100? [Re: fogman] #330786
06/29/10 19:35
06/29/10 19:35
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
In his profil is standing 7.05
oh i think he is a warez user


asking is the best Way to get help laugh laugh laugh
Re: how to add skills more than 100? [Re: fogman] #330946
07/01/10 04:31
07/01/10 04:31
Joined: Mar 2009
Posts: 25
kholis Offline OP
Newbie
kholis  Offline OP
Newbie

Joined: Mar 2009
Posts: 25
Originally Posted By: fogman
Let the entity create another entity.
Now you can use the 100 skills of your dummy entity like this:

you = ptr_for_handle(my.skill91);
if(you){you.skill1 = foo;}



i still not understand what you mean grin
so, how can i access this extra skill in c-script?

for example:
in default skills (skill1-skill100), i can simply check the skill value with
Code:
if(my.skill1 > 0){ do_something_here;}


but how about in this extra skills? i hope something like
Code:
if(my.skill101 > 0){ do_something_here;}


but its not works laugh

thanks

Re: how to add skills more than 100? [Re: kholis] #330969
07/01/10 10:23
07/01/10 10:23
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
maybe itīs a bug in your version grin
you really should update to the latest version: http://www.3dgamestudio.com/download.php

Re: how to add skills more than 100? [Re: Tempelbauer] #330990
07/01/10 13:55
07/01/10 13:55
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Yes, the version 7.05 is old and have a lot of bugs. Update it... wink

Re: how to add skills more than 100? [Re: Widi] #331063
07/01/10 19:16
07/01/10 19:16
Joined: Apr 2006
Posts: 159
Latvija
Arrovs Offline
Member
Arrovs  Offline
Member

Joined: Apr 2006
Posts: 159
Latvija
So if you use second model.
you=ent_create(cube.mdl,my.pos,null);
you.invisible=on;you.passable=on;
my.skill100=handle(you);//we here are storing extra 100 skills
//with second model who are invisible and passable

you=ptr_for_handle(my.skill100);
if(you.skill1==kautkas)//the same as 101
{daritkautko.....}

So if we use array
var array[100];
/*for example
var i=0;
while(i<array.length)
{
array[i]=i;
i+=1;
}
*/
my.skill1=array;
//and then we can use whole 100 skills from one skill
array=my.skill1;
vec_set(my.pos,vector(array[97],array[98],array[99]));
//and do what ever we want and store again
//So its your choise

Last edited by Arrovs; 07/01/10 19:17.

Arrovs once will publish game
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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