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 → Deactivated message not getting called
Deactivated message not getting called
2003-03-27, 10:04 AM #1
I have three inventory items scripted so that all they do is activate the respective bin when you press the button, and deactivate it when you release the button.
they work fine by themselves, but when i try to press more than one at a time, only one will be deactivated upon releasing them--the one I released first.
Code:
# Jedi Knight Cog Script
#
# ITEM_BACTA.COG
#
# INVENTORY script - Combo Button 1
#
# [GB]
#
# 
#==============================================================#
symbols

thing     player

message   activated
message   deactivated

end
#==============================================================#
code
#------------------------------------------------------
activated:
	player = GetSourceRef();
	SetInvActivated(player, 40, 1);

Return;
#------------------------------------------------------
deactivated:
	SetInvActivated(player, 40, 0);

Return;
#------------------------------------------------------

end


this is what the cogs look like.

It must be getting confused when so many deactivated messages get called or something.

------------------
I'm just an old man with a skooma problem.
I'm just an old man with a skooma problem.
2003-03-27, 7:07 PM #2
Put a print("deactivated"); in the message. Then try again.

------------------
"Anakin, when I tried to earn my knighthood by defeating a Sith Lord, I actually WON."
-Obi Wan Kenobi
2003-03-28, 12:59 PM #3
JK is quirky like that for some reason. I found this out for myself unfourtunatly. JK just won't recognize the deactivated message for other bins (in the same group, force/invintory) when another one is actived and deactivated.

However, if you target an item with force pull, and use force lighting, JK deactivates force pull. (and vice versa) Strange..... [http://forums.massassi.net/html/confused.gif]

------------------
-Hell Raiser
Remember kiddies, trial and error.
Without struggles there is no progress
DBZ: The Destruction is Real
-Hell Raiser

↑ Up to the top!