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 → How to change inventory in SP
How to change inventory in SP
2002-01-04, 6:31 AM #1
Alright, I have a SP level, and you lose all your weapons and ammo at a certain point. All you have left is your fists.

I have it so it should change during a cutscene. Example: Guy has weapons, cutscene, guy only has fists.

What would I write in the cog to clear out the inventory of the player in everything, so the only weapon he has is fists?

Thanks!

Demon_Nightmare
2002-01-04, 9:07 AM #2
Please post your cutscenes cog in your next post, and I'll edit it for you.
"The world is neither black nor white but differing shades of gray."
-By me.
2002-01-04, 9:58 AM #3
Hmm, I'd prefer not to post it up just cause in it lies key parts to the story..=0

I understand cog fairly good though, so all I really need is the lines, and I'll do the rest.
2002-01-04, 10:22 AM #4
This is mostly guessing...

I think you could use the message entered... And then do this(but with some stuff before of course):

SetInv(player, 2, 0)
SetInv(player, 3, 0)
etc....
wouldn't that work?


[This message has been edited by JediJigge (edited January 04, 2002).]
2002-01-04, 10:58 AM #5
you could do it with a for statement...
Code:
for (i=2; i<=10; i=i+1)
{
   SetInv(player, i, 0);
}

and if you want all the ammo gone too...
Code:
for (i=2; i<=12; i=i+1)
{
   SetInv(player, i, 0);
   SetInv(player, 15, 0);
}

↑ Up to the top!