0 registered members (),
1,549
guests, and 14
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Defining skills or flags
#71112
04/17/06 00:33
04/17/06 00:33
|
Joined: Apr 2004
Posts: 516 USA
Trooper119
OP
User
|
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
Expert
|
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
Serious User
|
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
OP
User
|
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
OP
User
|
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: Michael_Schwarz]
#71118
04/17/06 15:20
04/17/06 15:20
|
Joined: Apr 2004
Posts: 516 USA
Trooper119
OP
User
|
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: Claus_N]
#71120
04/17/06 15:28
04/17/06 15:28
|
Joined: Apr 2004
Posts: 516 USA
Trooper119
OP
User
|
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
OP
User
|
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|