JkKILER Posted December 1, 2012 Share Posted December 1, 2012 (edited) Hey everyone, not sure if anyone posted this yet, but I thought I'd share a script that brings up a message box when you activate something you declare as broken (Ex. Generator) All you have to do is make the messges in the geck Ill bold them in the script. Oh and you also need to specify Items you wish for an alternate way of repairng the generator if you dont have the skill to . Scn GeneratorScriptBroken short button Begin OnActivate if ( IsActionRef Player == 1 ) ShowMessage GeneratorMsgBrokenMainendifend Begin Gamemodeset button to getbuttonpressed if( Button == 2 )endif if (Button == 1) ;Skill, You can reapair the generator in 2 ways, skill and parts if player.getav repair < 80 showmessage GeneratorMsgFailSkill endif if player.getav repair > 79 I ;Make the skill what you want showmessage GeneratorMsgFixedplayer.rewardxp 100 ENDIFendif if (Button == 0) if player.getitemcount ;(Your choice of item) > 2 && player.getitemcount ; (Your choice of item) > 4 && player.getitemcount ; (Your choice of item) > 0 player.removeitem ; (Your choice of item) 3 player.removeitem ; (Your choice of item) 5 Player.removeitem ; (Your choice of item) 1 (Again, make the #'s what you wish showmessage OPGeneratorMsgFixedItems player.rewardxp 100 endifEndif end Edited December 1, 2012 by JkKILER Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted December 4, 2012 Share Posted December 4, 2012 Nvm me, wrong section. Link to comment Share on other sites More sharing options...
Recommended Posts