Scripting Help -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 10 years ago

I need help scripting for a mod. I am making a sword, you can only get if your strength is 100 or higher. If your strength is lower than 100 a message will appear saying "you are not strong enough to wield the sword" or something like that. I got the script partially working the sword is only added when your strength is 100 or higher but i can't get the message to show up when the players strength is lower than 100. Can someone please help me?




Guest

I didn't make it!

0 XP

 
#2 10 years ago

Use the script

If GetActorValue Strength < 100

MessageBox "You are not strong enough to wield this weapon."

EndIf

Inside your Begin/End blocks for a box to pop up telling you that you're not strong enough. OR

If GetActorValue Strength < 100

Message "You are not strong enough to wield this weapon."

EndIf

For a message to appear in the corner of the screen saying that you're not strong enough.