Dialog with NPC - HOW IT WORKS? The script works as follows: first, we create a camera and a dialog with the specified options.
14-day refund policy
Free updates forever
Inspect & modify the code
Click to load video from YouTube. By watching, you agree to their privacy policy.
cfg = {}
cfg.Dialog = {
title = {
text = Example Title,
background = {
primary = #00243a,
secondary = #050f19,
},
},
additional = {
text = Example Additional,
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/example.mp3,
volume = 50,
},
buttons = {
{
input = true,
message = Provide Your Full Name,
type = text,
onSelect = function(id, input)
print(id, input)
end
},
{
input = true,
message = Provide Your Age,
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,
},
}
0 questions
No questions yet
Be the first to ask a question about this product!