Dialog mit NPC
Dialog-Skript, das Kamera und Dialoge mit spezifischen Optionen fĂŒr NPC-Interaktionen erstellt.
Config-Datei
cfg = {}
cfg.Dialog = {
title = {
text = Beispiel-Ăberschrift,
background = {
primary = #00243a,
secondary = #050f19,
},
},
additional = {
text = Beispiel-ZusÀtzlich,
background = {
primary = #ff425d,
secondary = #b7162b,
},
},
message = {
text = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet enim vitae nibh ultricies, et laoreet libero ultricies. Vestibulum nec nisl sollicitudin, mattis augue eget, mollis sapien. Vivamus sed molestie arcu, at convallis augue.
typeEffect = 25,
},
audio = {
path = audio/beispiel.mp3,
volume = 50,
},
buttons = {
{
input = true,
message = Geben Sie Ihren vollstÀndigen Namen ein,
type = text,
onSelect = function(id, input)
print(id, input)
end
},
{
input = true,
message = Geben Sie Ihr Alter ein,
type = number,
onSelect = function(id, input)
print(id, input)
end
},
{
input = false,
message = Test-Button 1,
icon = {
name = fa-solid fa-house,
color = #ff425d,
},
onSelect = function(id)
print(id)
end
},
{
input = false,
message = Test-Button 2,
icon = {
name = fa-solid fa-house,
},
onSelect = function(id)
print(id)
end
},
{
input = false,
message = Test-Button 3,
onSelect = function(id)
print(id)
end
},
},
}
cfg.Camera = {
animation = {
male = {
{dict = missfbi3_party_d, anim = stand_talk_loop_a_male1},
{dict = missfbi3_party_d, anim = stand_talk_loop_a_male2},
{dict = missfbi3_party_d, anim = stand_talk_loop_b_male2},
{dict = missfbi3_party_d, anim = stand_talk_loop_b_male3},
},
female = {
{dict = missfbi3_party_b, anim = talk_inside_loop_female},
{dict = missfbi3_party_d, anim = stand_talk_loop_b_female},
{dict = missfbi3_party_d, anim = stand_talk_loop_a_female},
{dict = rcmnigel1cnmt_1c, anim = price_tag},
},
},
camera = {
position = {
x = 0.0,
y = 0.8,
z = 0.7,
},
offset = {
x = 0.0,
y = 0.0,
z = 0.5,
},
fov = 65.0,
ease = true,
easeTime = 1000,
},
}





