Rosten Posted October 9, 2013 Share Posted October 9, 2013 So, basically what i'd like to know if you can make multiple forms for a character, similar to the werebeaver, like if you eat a certain food, then you would transform into a form with a added meter along with all your others telling you how long this form would last, would you also be able to make multiple forms triggered by different items, and each one would have some sort of cooldown? Link to comment https://forums.kleientertainment.com/forums/topic/28602-helpwould-this-be-possible/ Share on other sites More sharing options...
squeek Posted October 9, 2013 Share Posted October 9, 2013 The answer to almost every "is it possible?" question is yes. Is it easy? No, probably not. Link to comment https://forums.kleientertainment.com/forums/topic/28602-helpwould-this-be-possible/#findComment-339700 Share on other sites More sharing options...
Rosten Posted October 9, 2013 Author Share Posted October 9, 2013 Ok, any insight onto how this would be done then? Link to comment https://forums.kleientertainment.com/forums/topic/28602-helpwould-this-be-possible/#findComment-339710 Share on other sites More sharing options...
Malacath Posted October 9, 2013 Share Posted October 9, 2013 Funny how you ask, Lawrence recently released a mod which would let his character transform depending on what he ate. He allowed for a grass, stone, gold and wood form. Check it out and fetch some code maybe he can help you. Link to comment https://forums.kleientertainment.com/forums/topic/28602-helpwould-this-be-possible/#findComment-339726 Share on other sites More sharing options...
Developer Cheerio Posted October 9, 2013 Developer Share Posted October 9, 2013 Switching what your character or creature looks like is pretty easy code wise. This snippet will switch between the different main players every second. characters = { 'wes', 'wickerbottom', 'willow', 'wilson', 'wolfgang', 'woodie', 'wx78' }Assets = {} for i, c in ipairs( characters ) do Assets[i] = Asset("ANIM", "anim/"..c..".zip")end local character_index = 0local function SwitchCharacter() local player = GLOBAL.GetPlayer() if player then character_index = character_index + 1 player.AnimState:SetBuild( characters[character_index] ) character_index = character_index % #characters endend AddGamePostInit( function() GLOBAL.scheduler:ExecutePeriodic( 1, SwitchCharacter ) end) Link to comment https://forums.kleientertainment.com/forums/topic/28602-helpwould-this-be-possible/#findComment-339743 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now