Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Need this darn cog and a question...
Need this darn cog and a question...
2003-03-07, 6:16 PM #1
I need a cog for a hotkey that changes the players saber mat (in other words color). I have addded 1 saber color by the way. Any ways my question is in the JkString.uni file, when you add a hotkey, do you just cahnge the 900 to 901 (message count at the top)?

------------------
Q:Whats the diference between god and Bill Gates?
A: God knows that he's not Bill Gates and Bill gates doesn't know he's god.
2003-03-07, 7:02 PM #2
In answer to your question, yes. Every time you add a line, update the count at the top. (like it says to do) [http://forums.massassi.net/html/smile.gif]

------------------
-Hell Raiser
Remember kiddies, trial and error.
Without struggles there is no progress
DBZ: The Destruction is Real
-Hell Raiser
2003-03-08, 12:34 AM #3
I think there is a tutorial here on massassi about adding hotkeys.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2003-03-08, 4:52 AM #4
Yes, I'm following the tutorial, but I need a cog for the saber color thing.

------------------
Q:Whats the diference between god and Bill Gates?
A: God knows that he's not Bill Gates and Bill gates doesn't know he's god.
2003-03-08, 7:18 AM #5
Theres one on the massassi.net cog download page.

------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-03-09, 9:54 AM #6
Thats not the type of cog I want. I want one like in IWP2, where you push the hotkey and it changes the saber mat.

------------------
Q:Whats the diference between god and Bill Gates?
A: God knows that he's not Bill Gates and Bill gates doesn't know he's god.
2003-03-09, 10:39 AM #7
If you know how to do hotkeys, just change the jkSetSaberInfo(creature, side_mat, tip_mat, base_rad, tip_rad, length, wall, blood, saber); side_mat and tip_mat to your choice and have it alternate.

------------------
As far as I can tell.
2003-03-09, 2:13 PM #8
I don't exactly understand. How do you alternate?

------------------
Q:Whats the diference between god and Bill Gates?
A: God knows that he's not Bill Gates and Bill gates doesn't know he's god.
2003-03-09, 3:10 PM #9
Let's say the mat name is "saber_mat".

In the symbols section you would put all of the saber mats as saber_mat2 etc. and use arrays.

when the key is pressed:
Code:
i = i + 1;

if(i > 7)
{
i = 0;
}

jkSetSaberInfo(player, saber_mat, saber_tip_mat, etc etc);


So every mat under saber_mat would be in order from 1 to the number of symbols. saber_mat (the original) is saber_mat[0], so you should set i = 0 in the symbols section.

------------------
As far as I can tell.

↑ Up to the top!