Jump to content

The last poster wins


TheCalliton

Recommended Posts

G'day new peps! Sadly, your wins are at an end. :devil:

So is yours. :tongue:

 

 

Oh, and I finished my script.

ScriptName WerneArmorRepairEffectScript
 
Int RepairSkill
Float RepairPerc
Float Health
Float BaseHealth
Ref Weapon
Ref TitBoy
Ref Armor
Short SlotID
 
Begin ScriptEffectStart
 
    Set RepairSkill to Player.GetActorValue Repair
    If (RepairSkill < 25)
        Set RepairPerc to 0.15
    ElseIf (RepairSkill >= 25 && RepairSkill < 50)
        Set RepairPerc to 0.20
    ElseIf (RepairSkill >= 50 && RepairSkill < 75)
        Set RepairPerc to 0.25
    ElseIf (RepairSkill >= 75)
        Set RepairPerc to 0.30
    EndIf
 
    Set Weapon to Player.GetEquippedObject 5
    Set TitBoy to Player.GetEquippedObject 6
 
    Label 69
    If (SlotID <= 19)
        Set Armor to Player.GetEquippedObject SlotID
        If (Armor != 0 && Armor != Weapon && Armor != TitBoy)
            Set Health to Player.GetEquippedCurrentHealth SlotID
            Set BaseHealth to GetBaseHealth Armor
            If (Health < BaseHealth)
                Set Health to Health + (BaseHealth * RepairPerc)
                If Health > BaseHealth
                    Set Health to BaseHealth
                EndIf
                Player.SetEquippedCurrentHealth Health SlotID
            Else
                Set SlotID to SlotID + 1
                Goto 69
            EndIf
        Else
            Set SlotID to SlotID + 1
            Goto 69
        EndIf
    Else
        Return
    EndIf
 
End

Works perfectly. Once it detects a damaged piece of worn equipment (that isn't a weapon or a PipBoy (called it TitBoy cause PipBoy can't be used as a variable)), it repairs it by X percent of base health, based on repair skill. It won't repair all armor pieces in one go or repair them multiple times like the first script either. It's perfect. :smile:

Link to comment
Share on other sites

Hang on, so does this automatically repair equipment as it breaks?

Nope, it's a repair kit, same as NV weapon repair kit but for armor (and for FO3).

Link to comment
Share on other sites

You see, I have here come to win,

but will I be able to I win or will I lose that win that I have been trying to win after my long period of absence?

Perhaps my win is not feasible, perhaps I will never be the winner of the last poser wins thread,

Perhaps I might win, perhaps I may yet claim the Psyduck Plushie as my prize, I can only hope for such a day. :psyduck:

 

(RIGHT, idk what that was but hi. Long time no see. :teehee: )

Link to comment
Share on other sites

 

Hang on, so does this automatically repair equipment as it breaks?

Nope, it's a repair kit, same as NV weapon repair kit but for armor (and for FO3).

 

 

Ah, right. I remembered that FO3 and FNV both had weapon degradation, but forgot that there wasn't any for armour. Sounds like a necessary mod to me. :thumbsup:

 

 

EDIT: 15 minutes until midnight... I wonder if The Witcher 3 will unlock? It probably won't until about midday tomorrow (when it ticks over to the 19th in America) but I can hope. Skyrim let me play early, after all! :D

 

EDIT 2: Darn, it hasn't unlocked. I'll probably try again at 1 AM but otherwise, I will have to wait.

Edited by billyro
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...