Myris Posted January 11, 2004 Share Posted January 11, 2004 I am not very good at scripting, not good at all, since this is one of the first times I tried it. Therefore I want to ask how I can make one or more static objects dissapear as soon as the player picks up a certain object. I have been trying but it seems that I cannot find the right commands. Can anyone around here please help me? Link to comment Share on other sites More sharing options...
Lord Of The Cheese Posted January 11, 2004 Share Posted January 11, 2004 If ( Player->GetItem, "the object being picked up == 1 )"static"->disableendif also make the static a unique id, otherwise it will disable all of the static in game Link to comment Share on other sites More sharing options...
Myris Posted January 11, 2004 Author Share Posted January 11, 2004 Thanks for the answer Lord of the Cheese. I will remember to give the item a unique ID, which I forget in the first place. EDIT: I tried the following script:begin _higherIf ( Player->GetItem, "item player should pick up" == 1 )"static to remove"->disableendifend _higher But it is still not working, I am getting an error that says:'Could not find variable or function "GetItem."' Can anyone help me with this or at least tell me what I am doing wrong? Link to comment Share on other sites More sharing options...
Lord Of The Cheese Posted January 11, 2004 Share Posted January 11, 2004 heh, well thats my fault because im stupid, its GetItemCount so: begin _higherIf ( Player->GetItemCount, "item player should pick up" == 1 )"static to remove"->disableendifend _higher and i just want to make sure you understand that "item player should pick up" is has to be replaced with the ID of the item you want the pc to pick up before disabling the staticand "static to Remove" has to be replaced with the ID of the unique static that will be disabled Link to comment Share on other sites More sharing options...
Serrieth Posted January 11, 2004 Share Posted January 11, 2004 Hey Lord of the cheese, I got an error message reading that GetDayspassed is not a function or command!?!?! can you tell me what it really is? :whistling: oh and a thought, the day is the same as Getdayspassed in a way I think. Link to comment Share on other sites More sharing options...
Switch Posted January 12, 2004 Share Posted January 12, 2004 Oh Serrieth, that's a blatant example of thread hijacking. Make your own thread please ;) EDIT: Oh wait, you DO have your own thread. Keep it there then :P Link to comment Share on other sites More sharing options...
Myris Posted January 12, 2004 Author Share Posted January 12, 2004 Thanks Lord of the Cheese, it is working exactly as it should. And I know that "item player should pick up" should be replaced by the items unique ID. Since the answer to this topic is given, any of the moderators may lock this topic as they wish. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.