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 → Inventory question
Inventory question
2001-02-10, 5:51 AM #1
How do you make it so the player must have the blue key in order for the block of the if statement to be executed?

Basically, I want:

If player has blue key

do this

else, say "locked"

------------------
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber

[This message has been edited by Antilles! (edited February 10, 2001).]
2001-02-10, 6:26 AM #2
activated:
if(GetInv(player, keybin) != 1) return;
else
do stuff


i dont know what bin the keys are, so just look in the items.dat
I'm just an old man with a skooma problem.
2001-02-10, 6:27 AM #3
oops, well just stuck in a playsoundthing(); before the retun and it will do what you want
I'm just an old man with a skooma problem.
2001-02-10, 6:49 AM #4
Forgive me for my ignorance, but where do I find items.dat?

------------------
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber
2001-02-10, 8:17 AM #5
Open up the humongous .gob file in your resource directory with a program like ConMan (available here or at Code Alliance), go to the misc folder, and extract items.dat. Then look for the blue key's bin number, and fill that in for the second parameter in Gunny's code above.

-Jipe
2001-02-10, 8:19 AM #6
Okay, I know how to do all that. Thanks a lot guys!

------------------
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber

↑ Up to the top!