Jump to content

SPECIAL check for equipment


zrovektor

Recommended Posts

Hello all. Very new to the CK and find myself stuck on a noobish question. Say I wanted to require that a character has a strength of 10 in order to equip a weapon or a piece of armor, how would I go about that? Would it require a script or is that a built in function I just happen to be missing? Any help will be appreciated. Thank you all for your time.

Link to comment
Share on other sites

You make a script on the weapon in question.

 

The script would be something along the lines of:

Scriptname Namespace:NameOfScript extends ObjectReference Const

ActorValue Strength

Event OnEquipped(Actor akActor)

    If akActor.GetBaseValue(Strength) < 10

        akActor.UnEquipItem(Self.GetBaseObject())

    endIf

endEvent

Note that the actor value for strength should probably be defined through the properties section of your script, which you can access by double clicking your script in the CK.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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