Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
How to make an npc talk in 2.6.1 PAS please help
How to make an npc talk in 2.6.1 PAS please help
Okay so i need to know what codes to use to make an npc talk, i know its in the cfg file i can learn quick please help me. An example of one would be great so i can play arround with that and learn it. THANKS in advance
- CyberxNeku
- Member
- Posts: 10
- Joined: March 24th, 2011, 3:28 pm
- Name: Raaaawr!
Re: How to make an npc talk in 2.6.1 PAS please help
Heres a really great reference of pretty much all u need to know to make an npc talk through gui menus ^^ viewtopic.php?f=24&t=1317&p=10518&hilit ... ger#p10518
-
- Support Team
- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: How to make an npc talk in 2.6.1 PAS please help
well, if you want an example:
Code: Select all
level_trigger_1 = [showgui npc1-1]
newgui npc1-1 [
guitext "Yo, what's up, dawg?"
guibar
guibutton "Uh, hi?" [cleargui]
guibutton "(Ignore him and go away)" [cleargui]
] "Weird Guy"
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Re: How to make an npc talk in 2.6.1 PAS please help
okay thank you for all your help, now is there any way to have a conversation with them instead of just one gui would i just add a new gui like this:
would that work?
Code: Select all
level_trigger_1 = [showgui npc1-1]
newgui npc1-1 [
guitext "Yo, what's up, dawg?"
guibar
guibutton "Uh, hi?" [showgui npc2-2]
guibutton "(Ignore him and go away)" [cleargui]
] "Weird Guy"
level_trigger_1 = [showgui npc2-2]
newgui npc1-2 [
guitext "Yo, what's up, dawg?"
guibar
guibutton "uhh hello.." [cleargui]
guibutton "Walk away" [cleargui]
] "Weird Guy"
-
- Support Team
- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: How to make an npc talk in 2.6.1 PAS please help
yes, it would be the same, but you wouldn't need to put npc2-2 in there; it's easier to put npc1-2 (person 1, menu 2) in there. Got it?
Also, you wouldn't need a second "level_trigger_1" to pull it up.
With corrections, here's what I think you're looking for:
I changed a little bit of it, a guy isn't gonna say the same thing twice now, is he?
I also continued it, put in some placeholder kind of things.
Also, you wouldn't need a second "level_trigger_1" to pull it up.
With corrections, here's what I think you're looking for:
Code: Select all
level_trigger_1 = [showgui npc1-1]
newgui npc1-1 [
guitext "Yo, what's up, dawg?"
guibar
guibutton "Uh, hi?" [showgui npc1-2]
guibutton "(Ignore him and go away)" [cleargui]
] "Weird Guy"
newgui npc1-2 [
guitext "Seriously, how're you doing?"
guibar
guibutton "I'm doing fine, thanks." [showgui npc1-3]
guibutton "Walk away" [echo "Hmph. The nerve of some people." ; cleargui]
] "Weird Guy"
newgui npc1-3 [
guitext "(BLAH BLAH BLAH)
guibar
guibutton "(BLAH BLAH 1) [action]
guibutton "(BLAH BLAH 2) [action]
] "Weird Guy"
I also continued it, put in some placeholder kind of things.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Re: How to make an npc talk in 2.6.1 PAS please help
okay got it! thanks!