Jump to content

[Char] How to add a Beardly thinggy?


Fuffles

Recommended Posts

Im trying to add to my character the ability to create Corals as his beard but... Im new to coding etc... and I have no idea to do so ;-; here is all my code and if you could tell me what to add and where to put it that would help a lot, thx

~Dragonfly
 

PrefabFiles = {
"wabbit",
"examplefloatableitem",
}
 
Assets = {
    Asset( "IMAGE", "images/saveslot_portraits/wabbit.tex" ),
    Asset( "ATLAS", "images/saveslot_portraits/wabbit.xml" ),
 
    Asset( "IMAGE", "images/selectscreen_portraits/wabbit.tex" ),
    Asset( "ATLAS", "images/selectscreen_portraits/wabbit.xml" ),
 
    Asset( "IMAGE", "images/selectscreen_portraits/wabbit_silho.tex" ),
    Asset( "ATLAS", "images/selectscreen_portraits/wabbit_silho.xml" ),
 
    Asset( "IMAGE", "bigportraits/wabbit.tex" ),
    Asset( "ATLAS", "bigportraits/wabbit.xml" ),
 
Asset( "IMAGE", "images/map_icons/wabbit.tex" ),
Asset( "ATLAS", "images/map_icons/wabbit.xml" ),
 
}
 
local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS
 
-- The character select screen lines
STRINGS.CHARACTER_TITLES.wabbit = "The Coward"
STRINGS.CHARACTER_NAMES.wabbit = "Wabbit"
STRINGS.CHARACTER_DESCRIPTIONS.wabbit = "*?\n*?\n*?"
STRINGS.CHARACTER_QUOTES.wabbit = "\"Is that dangerous?\""
 
-- Custom speech strings
STRINGS.CHARACTERS.WABBIT = require "speech_wabbit"
 
-- Let the game know character is male, female, or robot
table.insert(GLOBAL.CHARACTER_GENDERS.MALE, "wabbit")
 
AddMinimapAtlas("images/map_icons/wabbit.xml")
AddModCharacter("wabbit")
 
Link to comment
Share on other sites

Tip: there's a SW subforum. Maybe you get more support there? I don't know whether SW changes any code for beards.

 

However, I can tell you this much for sure: You will need to edit the character's prefab file (not the one you posted). You can probably use Wilson as a template for this.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...