MaxPayne993 Posted December 29, 2014 Share Posted December 29, 2014 I need help with scriptsCan someone paste me repair 100 script and healing script that allows you to heal yourself, remove rads and restore limbs Link to comment Share on other sites More sharing options...
Ladez Posted December 29, 2014 Share Posted December 29, 2014 I don't have the time to write out an example right now. But I can point you to a few functions that should be helpful:ModWeaponHealthPercActor Value Functions Link to comment Share on other sites More sharing options...
MaxPayne993 Posted December 29, 2014 Author Share Posted December 29, 2014 okay i figured it out, but now i need script for when you click on object and it give you two options, like freeside studio, get it? Link to comment Share on other sites More sharing options...
Ladez Posted December 29, 2014 Share Posted December 29, 2014 You need to use ShowMessage to show a message form and GetButtonPressed to detect which button has been pressed. The page for the latter has an example showing the basic structure you're looking for. Link to comment Share on other sites More sharing options...
MaxPayne993 Posted December 29, 2014 Author Share Posted December 29, 2014 no offense but didn't understand a thing what you just said Link to comment Share on other sites More sharing options...
Ladez Posted December 29, 2014 Share Posted December 29, 2014 ShowMessage shows a message form that you have created in the GECK under Miscellaneous > Message. To get a box to show up with options to choose from, make sure Message Box is checked inside the message form. GetButtonPressed returns the index of the latest button that has been pressed in any message. It is usually used in a GameMode block. You will need to save the return value from GetButtonPressed into a variable and set up conditions to check for each possible outcome. This is demonstrated in the example script found on the function's wiki page. Link to comment Share on other sites More sharing options...
Recommended Posts