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 → Global Vars
Global Vars
2001-03-03, 6:28 PM #1
I want to use the same int variable in several different cogs.

For example, in weap_bryar, if I define an int as 1, how do I get weap_strifle to know that value? [http://forums.massassi.net/html/confused.gif]

------------------
Yub-Yub, Commander.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-03-04, 1:59 AM #2
Make a new entry after 115 in items.dat and use

SetInv(player, 116, 1);

and

GetInv(player, 116);

------------------
http://millennium.massassi.net/ - Millennium
2001-03-04, 11:04 AM #3
OK, that's what I was doing. Thanks again, Hideki.

------------------
Yub-Yub, Commander.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!