error = "The selected preset link failed to load. It may be from an old version of the commission picker. It has been replaced with the default preset below."
}
}
});
if(prefill) {
base();
}
}
function update_example(commission: Commission) {
let lastQuestion = commission.questions[commission.questions.length - 1];
let lastAnswer = commission.answers[commission.answers.length - 1];
let example = "";
commission.example = "";
let typeFound = types.filter(value => {
return value['name'] == commission.type;
});
let type = typeFound[0];
let count = 0;
commission.questions.forEach(value => {
if(type['examples_from'] == value['name']) {
lastQuestion = commission.questions[count];
lastAnswer = commission.answers[count];
}
count++;
})
lastQuestion.options.forEach(value => {
if(value['name'] == lastAnswer['option']) {
example = value['example'];
}
});
type['examples'].forEach(value => {
if(value['name'] == example) {
commission.example = value['url'];
}
});
}
function base() {
let commission = {
"type": types[0]["name"],
"name": "Commission " + number,
"example": types[0]["example"],
"price": 10,
};
commissions.push(commission);
update_commission_type(commission);
update_example(commission);
update_price(commission);
commissions = commissions;
}
function save() {
let data = [];
commissions.forEach(value => {
data.push({
"type": value['type'],
"name": value["name"],
"answers": value["answers"]
})
});
const urlParams = new URLSearchParams(window.location.search);
"description":"I'm a young Asian artist who specializes in cartoony 2D animals.<br/>You can find more information below."
},
"calculator":{
"title":"Commission Picker",
"description":"Use Siv Kyne's commission picker to estimate how much your commission would cost. Including multiple commissions, saving your presets, and more!",
"types":[
{
"name":"Icon",
"examples_from":"Detail level",
"examples":[
{
"name":"complexlineless",
"url":"/commissions/alakai again.jpg"
},
{
"name":"basic",
"url":"/commissions/iconbasic.jpg"
},
{
"name":"sketchy",
"url":"/commissions/nick.jpg"
},
{
"name":"ultralineart",
"url":"/commissions/iconultralineart.jpg"
},
{
"name":"basiclineless",
"url":"/commissions/iconbasiclineless.jpg"
},
{
"name":"cellshaded",
"url":"/commissions/iconcellshaded.jpg"
}
],
"questions":[
{
"name":"Detail level",
"options":[
{
"name":"Sketchy",
"example":"sketchy",
"price":13
},
{
"name":"Basic",
"example":"basic",
"price":18
},
{
"name":"Basic Lineless",
"example":"basiclineless",
"price":18
},
{
"name":"Cell Shaded",
"example":"cellshaded",
"price":23
},
{
"name":"Ultra Lineart",
"example":"ultralineart",
"price":30
},
{
"name":"Complex Lineless",
"example":"complexlineless",
"price":33
}
]
},
{
"name":"Fur",
"options":[
{
"name":"1-3 fur colors",
"price":0
},
{
"name":"4-5 fur colors",
"price":7
},
{
"name":"6+ fur colors",
"price":10
}
]
}
]
},
{
"name":"Sticker/Emote",
"examples_from":"Fur",
"examples":[
{
"name":"4fur",
"url":"/commissions/emote2.jpg"
},
{
"name":"3fur",
"url":"/commissions/emote4.jpg"
}
],
"questions":[
{
"name":"Amount",
"options":[
{
"name":"Individual",
"example":"sticker",
"price":7
},
{
"name":"Pack of 4",
"example":"sticker",
"price":26
},
{
"name":"Pack of 5",
"example":"sticker",
"price":31
},
{
"name":"Pack of 6",
"example":"sticker",
"price":38
}
]
},
{
"name":"Fur",
"options":[
{
"name":"1-3 fur colors",
"example":"3fur",
"price":0
},
{
"name":"4-5 fur colors",
"example":"4fur",
"price":5
},
{
"name":"6+ fur colors",
"example":"4fur",
"price":8
}
]
}
]
},
{
"name":"Halfbody",
"examples_from":"Detail level",
"examples":[
{
"name":"basic",
"url":"/commissions/halfbodybasic.jpg"
},
{
"name":"sketchy",
"url":"/commissions/halfbodysketchy.jpg"
},
{
"name":"ultralineart",
"url":"/commissions/halfbodyultralineart.jpg"
},
{
"name":"basiclineless",
"url":"/commissions/halfbodybasiclineless.jpg"
}
],
"questions":[
{
"name":"Detail level",
"options":[
{
"name":"Sketchy",
"example":"sketchy",
"price":18
},
{
"name":"Basic",
"example":"basic",
"price":23
},
{
"name":"Basic Lineless",
"price":23
},
{
"name":"Cell Shaded",
"price":28
},
{
"name":"Ultra Lineart",
"example":"ultralineart",
"price":40
}
]
},
{
"name":"Fur",
"options":[
{
"name":"1-3 fur colors",
"example":"3fur",
"price":0
},
{
"name":"4-5 fur colors",
"example":"4fur",
"price":10
},
{
"name":"6+ fur colors",
"example":"4fur",
"price":15
}
]
}
]
},
{
"name":"Fullbody",
"examples_from":"Detail level",
"examples":[
{
"name":"basic",
"url":"/commissions/fullbodybasic.jpg"
},
{
"name":"basiclineless",
"url":"/commissions/fullbodybasiclineless.jpg"
},
{
"name":"ultralineart",
"url":"/commissions/ultralinearthalfbodies.jpg"
}
],
"questions":[
{
"name":"Detail level",
"options":[
{
"name":"Sketchy",
"price":23
},
{
"name":"Basic",
"example":"basic",
"price":28
},
{
"name":"Basic Lineless",
"example":"basiclineless",
"price":28
},
{
"name":"Cell Shaded",
"price":33
},
{
"name":"Ultra Lineart",
"example":"ultralineart",
"price":45
}
]
},
{
"name":"Fur",
"options":[
{
"name":"1-3 fur colors",
"example":"3fur",
"price":0
},
{
"name":"4-5 fur colors",
"example":"4fur",
"price":15
},
{
"name":"6+ fur colors",
"example":"4fur",
"price":20
}
]
}
]
},
{
"name":"Reference sheet",
"examples_from":"Views",
"examples":[
{
"name":"2views",
"url":"/commissions/refsheet2.jpg"
},
{
"name":"3views",
"url":"/commissions/refsheet1.jpg"
}
],
"questions":[
{
"name":"Views",
"options":[
{
"name":"Front + Back",
"example":"2views",
"price":40
},
{
"name":"Front + Side + Back",
"example":"3views",
"price":50
}
]
},
{
"name":"Fur",
"options":[
{
"name":"1-3 fur colors",
"example":"3fur",
"price":0
},
{
"name":"4-5 fur colors",
"example":"4fur",
"price":20
},
{
"name":"6+ fur colors",
"example":"4fur",
"price":25
}
]
},
{
"name":"Additions",
"multiple":true,
"options":[
{
"name":"None",
"price":0
},
{
"name":"Custom Design",
"price":20
},
{
"name":"Extra Headshot",
"price":15
},
{
"name":"Paws",
"price":10
},
{
"name":"Maw",
"price":5
},
{
"name":"Standalone outfit",
"price":10
},
{
"name":"Full alt. version",
"price":20
},
{
"name":"Chibi alt. version",
"price":10
}
]
}
]
}
]
},
"tos":{
"title":"Terms of Service",
"description":"By commissioning Siv Kyne, you are agreeing to all of these terms and are held responsible for any noncomformities. These terms may be updated at any time without notice.",
<h4class="text-center py-20 text-sm text-gray-200">copyright {newDate().getFullYear()} -- site made by <ahref="https://bartindustries.com/"target="blank"class="hover:underline border-b border-dashed hover:border-b-0">midblep</a> -- art by siv kyne -- bg art by smol-static</h4>
copyright {newDate().getFullYear()} -- site made by <ahref="https://bartindustries.com/"target="blank"class="hover:underline border-b border-dashed hover:border-b-0">midnight</a> -- art by siv kyne