Jump to content

Post your Scripts Here


Smosh

Recommended Posts

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 GeneratorMsgBrokenMain

endif

end

 

Begin Gamemode

set 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 GeneratorMsgFixed

player.rewardxp 100

 

ENDIF

endif

 

 

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

 

 

endif

Endif

 

 

 

 

end

Edited by JkKILER
Link to comment
Share on other sites

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...