Graesholt Posted January 23, 2011 Share Posted January 23, 2011 I need making a script that runs on the eqipping of the item, to which it is attached, but it must only run if another specific item is equipped.the script needs to go: Begin OnEquipIf Equipped XZYSpecificItemYZXthen... How would i make the If-Thing work? Link to comment Share on other sites More sharing options...
WastelandAssassin Posted January 23, 2011 Share Posted January 23, 2011 i think that you can use this functionthis should do just what you are looking for hope this helps :) Link to comment Share on other sites More sharing options...
Graesholt Posted January 23, 2011 Author Share Posted January 23, 2011 What do i do with the "1" that returns? Im sorry im very new to scripting, but thanks for answering so quickly :D Do i wright something like: GetEquipped XXXSomethingXXXIf = 1Do this-and-that else... Or is that completely wrong? Link to comment Share on other sites More sharing options...
Deleted2461031User Posted January 23, 2011 Share Posted January 23, 2011 (edited) You would do something like: If (player.GetEquipped ObjectIDGoesHere == 1) ;code you want to execute goes here Endif Edited January 23, 2011 by Guest Link to comment Share on other sites More sharing options...
Graesholt Posted January 23, 2011 Author Share Posted January 23, 2011 Ok :D Ill take a look at that then :D Link to comment Share on other sites More sharing options...
Recommended Posts