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.

How to make an npc talk in 2.6.1 PAS please help

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
own4lif3
Member
Member
Posts: 16
Joined: February 23rd, 2011, 2:01 pm
Name: Austin

How to make an npc talk in 2.6.1 PAS please help

Post by own4lif3 »

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
User avatar
CyberxNeku
Member
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

Post by CyberxNeku »

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
chocolatepie33
Support Team
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

Post by chocolatepie33 »

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!
own4lif3
Member
Member
Posts: 16
Joined: February 23rd, 2011, 2:01 pm
Name: Austin

Re: How to make an npc talk in 2.6.1 PAS please help

Post by own4lif3 »

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:

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"
would that work?
chocolatepie33
Support Team
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

Post by chocolatepie33 »

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:

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 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.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
own4lif3
Member
Member
Posts: 16
Joined: February 23rd, 2011, 2:01 pm
Name: Austin

Re: How to make an npc talk in 2.6.1 PAS please help

Post by own4lif3 »

okay got it! thanks!
Locked