Editing device properties using a verse script

I have a creature manager device and I was hoping to set the creature health using a custom verse device. I understand using event subscriptions to trigger other devices but im not sure how to change the editable properties of the device.

Any help is appreciated, thanks!

The only exposed properties on devices are the ones listed in the digest for each device. You can find that by ctrl-clicking the device class (like creature_manager_device).

Thank you for your reply, are there other options to modify the health of a creature type through a verse script?

You can add editable on you’r npc verse behavior to set health, and from the behavior, on the OnBegin, use

FortCharacter.SetHealth(YourValue)
FortCharacter.SetMaxHealth(YourValue)

You can do what they were saying and set the creature’s health through the fort_character interface, yes- but keep in mind you’d have to have a way of tracking what creature is spawning from each spawner and then set their health accordingly through that.

1 Like