- Aug 27, 2017
- 108
- 151
Hello everyone.
I want to create a clothes customisation option for my game but I dont know how to save the preference choose by the player.
I have create differents variables for the differents clothes and I set a variable for the whole set like this:
and then I write this:
But I don't know how to create an option for the player to make a new custom entry for LilyWearSet
Should I create some empty LilyWearSet and name them custom 1,custom 2, ... , custom 10 and then the player will change the variables ?
Is there an other option?
Thanks
I want to create a clothes customisation option for my game but I dont know how to save the preference choose by the player.
I have create differents variables for the differents clothes and I set a variable for the whole set like this:
Code:
default LilyWearRef = ['base','base','base','shoes_1','jeans','top_1','none','none']
$ LBra = LilyWearRef [0] #none/base
$ LPanties = LilyWearRef [1] #none/base
$ LSock = LilyWearRef [2] #none/base
$ LShoes = LilyWearRef [3] #none/shoes_1
$ LBottom = LilyWearRef [4] #none/jeans
$ LTop = LilyWearRef [5] #none/top_1
$ LCoat = LilyWearRef [6] #none FOR THE MOMENT
$ Lglasses = LilyWearRef [7] #none FOR THE MOMENT
Code:
#CLOTHES SET
if LilyWearSet == 'naked':
$ LilyWearRef = ['none','none','none','none','none','none','none','none']
elif LilyWearSet == 'casual_1':
$ LilyWearRef = ['base','base','base','shoes_1','jeans','top_1','none','none']
else:
$ LilyWearRef = ['base','base','base','shoes_1','jeans','top_1','none','none']
return
Should I create some empty LilyWearSet and name them custom 1,custom 2, ... , custom 10 and then the player will change the variables ?
Is there an other option?
Thanks
Last edited: