The Massassi Temple: Forums  

Go Back   The Massassi Temple: Forums > Editing Forums > Cog Forum

Reply
 
Thread Tools Rate Thread
Title: Inventory question
Antilles! is offline Antilles!
Registered User
Inventory question | Old Posted: 02-10-2001, 08:51 AM #1
Reply With Quote

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).]
____________
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber
 
GuNbOy is offline GuNbOy
Registered User
Old Posted: 02-10-2001, 09:26 AM #2
Reply With Quote

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.
 
GuNbOy is offline GuNbOy
Registered User
Old Posted: 02-10-2001, 09:27 AM #3
Reply With Quote

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.
 
Antilles! is offline Antilles!
Registered User
Old Posted: 02-10-2001, 09:49 AM #4
Reply With Quote

Forgive me for my ignorance, but where do I find items.dat?

------------------
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber
____________
Antilles
JK & MotS Level Reviewer
The Admiral's Commmand Chamber
 
Jipe is offline Jipe
Registered User
Old Posted: 02-10-2001, 11:17 AM #5
Reply With Quote

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
 
Antilles! is offline Antilles!
Registered User
Old Posted: 02-10-2001, 11:19 AM #6
Reply With Quote

Okay, I know how to do all that. Thanks a lot guys!

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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.