Project Zomboid

Project Zomboid

Not enough ratings
Bard Interactive Music: Trait Lock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
638.694 KB
Mar 12 @ 12:52am
Mar 12 @ 2:25pm
3 Change Notes ( view )

Subscribe to download
Bard Interactive Music: Trait Lock

Description
Add the Musician Trait for 4 points to Bard Interactive Music.

This mod is primarily aimed at roleplay server who would like to avoid being overwhelmed by an entire population of musicians.

If you would like to change the cost of the trait you are free to reupload this very simple mod with a different value. Sadly there is no way for the server to communicate a custom value.

The code of this mod is very simple, all the heavy work is already done in Bard Interactive Music. To reupload a new mod all you need to do is change the value of trait:setCost() with the cost of your choice.

local function enableBardTrait() local BardTrait = require 'BardTrait' local trait = BardTrait.getInstance() trait:enableTrait() trait:setCost(4) trait:initTrait() end Events.OnGameBoot.Add(enableBardTrait)

License
All the files are released under the MIT license. Although it's really just one file of 10 lines at most and two preview images.

Workshop ID: 3180045177
Mod ID: BardInteractiveMusicTraitLock