Skip to main content

Provided Examples

Provided with the system, there are two additional Proof-of-Concept systems which demonstrate how StatPal could be implemented into already-existing systems with little-to-no hassle.

Example Item with Stats - Equipping/Unequipping

BP_ExampleItem

Eg_1

The purpose of this item is to demonstrate how StatPal can be utilised in an already-existing Item system.

The only necessary step to get StatPal working with an existing Item system is to simply add a new variable:

Eg_2

And simply using this new variable to give/take stats when the item is equipped/unequipped:

Eg_3

(Screenshot from W_DemoHUD)

Example Damage Calculation

BPFL_StatPal - CalculateDamage()

Eg_4

The purpose of this function is to demonstrate how stats can be used to affect damage calculation.

The function aims to be as modular as possible, leaving it to the user to define what stat affects the damage with how much of an effectiveness. It is built to be easily extendible.

Eg_5