Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,549 guests, and 14 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Defining skills or flags #71112
04/17/06 00:33
04/17/06 00:33
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
I've tried and looked everywhere and I give up, how do you define (in WED) skills so that their names will no longer be ...Skill1, Skill2 ... Skill50. But instead things like radius, height_length, base_length_x, base_length_y... I have tried and come up with the following code without success.
Code:
 DEFINE	_radius, SKILL41;
DEFINE _height_length, SKILL42;
DEFINE _base_length_x, SKILL43;
DEFINE _base_length_y, SKILL44;




A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: Defining skills or flags [Re: Trooper119] #71113
04/17/06 01:58
04/17/06 01:58
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
Well WED only uses skill 1-20, so setting anything higher then that wouldn't show up anyway.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Defining skills or flags [Re: Trooper119] #71114
04/17/06 02:01
04/17/06 02:01
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
you need to put a comment, right before the action:
// use: [skills]

example:Code:
define _radius,skill41;
define _height_length,skill42;
define _base_length_x,skill43;
define _base_length_4,skill44;

// use: _radius, _height_length, _base_length_x, _base_length_y
action blablabla
{
...
}



EDIT:
@Foxhound
lol, forgot about that ^^

Re: Defining skills or flags [Re: Claus_N] #71115
04/17/06 02:08
04/17/06 02:08
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
I tried the //use: _radius, _height_length, _base_length_x, _base_length_y
for each individual action and found that "//use: " only effects the action that it is above, that is really cool thanks everyone, that really helps out, everything is fixed now

Last edited by Trooper119; 04/17/06 02:17.

A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: Defining skills or flags [Re: Trooper119] #71116
04/17/06 15:13
04/17/06 15:13
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
I have a similar problem with the skills not showing up in one of the functions, this is puzzleing because it shows up in each action before it, (yes I reloaded the level, and no it didn't work) so after tweaking with it for a bit I was wondering if anyone could tell me what's up this is the Code:
 DEFINE	_radius, SKILL1;
DEFINE _height_length, SKILL2;
DEFINE _base_length_x, SKILL3;
DEFINE _base_length_y, SKILL4;

// use: _radius, _height_length
action spawn_cylinder
{
temp_creation = cylinder();
spawn(temp_creation);
}

// use: _radius
action spawn_circle_half
{
temp_creation = circle_half();
spawn(temp_creation);
}

// use: _radius
action spawn_circle_full
{
temp_creation = circle_full();
spawn(temp_creation);
}

// use: _radius
action spawn_circle_plane
{
temp_creation = circle_plane();
spawn(temp_creation);
}

// use: _height_length, _base_length_x, _base_length_y
action spawn_square_full
{
temp_creation = square_full();
spawn(temp_creation);
}

//below is the code that isn't showing its "_base_length_x, _base_length_y" in WED

// use: _base_length_x, _base_length_y
action spawn_square_plane
{
temp_creation = square_plane();
spawn(temp_creation);
}

//to make the use on action spawn_square_plane work, this is here


All the other actions show their actions in WED (the ones not in red)

P.S. Without the last comment on the code, it did not show the the use: command, the code above now works perfectly

Last edited by Trooper119; 04/17/06 16:29.
Re: Defining skills or flags [Re: Trooper119] #71117
04/17/06 15:19
04/17/06 15:19
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
its

//uses:

not

//use:


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Defining skills or flags [Re: Michael_Schwarz] #71118
04/17/06 15:20
04/17/06 15:20
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
I edited my code above to what I have now, but it has the same problem as before

Last edited by Trooper119; 04/17/06 15:23.

A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: Defining skills or flags [Re: Trooper119] #71119
04/17/06 15:25
04/17/06 15:25
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
you got a space just before the last //uses:, try removing that.

PS:
// use: works just as good as // uses:
I always use the first one.

Re: Defining skills or flags [Re: Claus_N] #71120
04/17/06 15:28
04/17/06 15:28
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
My code was updated again, take a look I tried everything you've said, delete the space, // use:, // uses:, //use, //uses, //use:, //uses: they all let all the other actions use name in WED but it is still named SKILL1, SKILL2... when I look at action spawn_square_plane in WED

Last edited by Trooper119; 04/17/06 15:37.
Re: Defining skills or flags [Re: Trooper119] #71121
04/17/06 15:39
04/17/06 15:39
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline OP
User
Trooper119  Offline OP
User

Joined: Apr 2004
Posts: 516
USA
I'll be back in 5 minutes guys, i'll try reloading the computer, may be resetting everything that way will solve something, I doubt it but I will give it a try and let you know my situation then, see you in 5.

Well I tried, it didn't work, any other suggestions?

Last edited by Trooper119; 04/17/06 15:50.

A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Page 1 of 2 1 2

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