HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Restrictions on heads

View previous topic View next topic Go down 
AuthorMessage
Vrisken

avatar

Game username : Vrisken
Server : Skaiya
Posts : 31
Join date : 2014-09-14
Age : 20

PostSubject: Restrictions on heads   Wed Aug 31, 2016 3:20 pm

I was wondering if anyone knew how to restrict certain body parts? and how i could go about doing it? thanks.
Back to top Go down
http://skaiya.proboards.com/
ObeyTheFist

™
avatar

Game username : ObeyTheFist
Server : Dragon's Den
Female Posts : 514
Join date : 2012-09-07
Location : Australia

PostSubject: Re: Restrictions on heads   Thu Sep 01, 2016 12:49 am

A coder would know. I know that Worthis definitely does, but it will cost you money. You can always ask a coder here on KITO, I know Hyper is currently taking coding commissions: http://www.kitopen.com/t4529-programming-commissions
Back to top Go down
http://dragonsden.freeforums.net
Delete me.
Coder
Coder


Male Posts : 353
Join date : 2011-07-25
Age : 22

PostSubject: Re: Restrictions on heads   Thu Sep 01, 2016 12:58 am

Depends on what you're trying to do with it. The standard restricted function is in MagixExternalDefinitions.cpp, here:
Code:
bool MagixExternalDefinitions::isRestricted(const short &headID, const short &maneID)
{
   if (headID == 0 || headID == 4)
   {
      if (maneID == 2 || maneID == 4 || maneID == 7 || maneID == 8 || maneID == 9 || maneID == 10 || maneID == 14 || maneID == 15 || maneID == 16 || maneID == 17 || maneID == 18 || maneID == 19 || maneID == 20 || maneID == 21 || maneID == 22 || maneID == 23 || maneID == 24)return true;
   }
   else if (headID == 1 || headID == 2 || headID == 3 || headID == 5)
   {
      if (maneID == 1 || maneID == 3 || maneID == 5 || maneID == 6 || maneID == 11 || maneID == 12 || maneID == 13 || maneID == 21 || maneID == 23)return true;
   }
   return false;

It works like an if -> then statement;
if you are using any of these heads: -> then, these manes may be used: x

There's also the restrictedTuft function a few lines down, which just makes the part not selectable, so it would have to applied manually to the .character file, or only usable in a Campaign:

Code:
bool MagixExternalDefinitions::isRestrictedTuft(const short &tuftID)
{
   if (tuftID == 8)return true;
   return false;
}

Again, an if->then statement. If the tuft is this number, it is restricted (return true;), otherwise it is not (return false).
Back to top Go down
Sponsored content




PostSubject: Re: Restrictions on heads   

Back to top Go down
 
Restrictions on heads
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: