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.

please help... npc comments

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.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: please help... npc comments

Post by Leo_V117 »

You should stop double posting. Its getting confusing. If you need to add anything, just select the "Edit Post" option on the right. And you made a mistake in the code too...

Code: Select all

"level_trigger_1" = "showgui Ogre"

newgui "Ogre" [
    guitext "Hi I'm your friend!" chat
    guitext "Want to talk?" chat
    guibar
    guibutton "Sure!" [showgui Friend_1]
    guibutton "No. (close)" [cleargui]
]"Arcones
And this is what youre really looking for: (I just realised im using 2.6.2/2.7)
So... for the next version, this will be valid.

Create a new folder in data/rpg/games and call it "rpgtest"...
In the new folder, create a cfg called "player" and enter this: (this appears to be the player functions)

Code: Select all

faction_player = (r_faction_new)

r_char_new //this should be 0
r_char_mdl *folder/model*
r_char_script $nullscript
r_char_base_agility *number*
Now save it, then create one called "tips" and add this: (this appears to show when loading the game)

Code: Select all

r_tip_new "Tip Text"
r_tip_new "Tip Text"
r_tip_new "Tip Text"
r_tip_new "Tip Text"
r_tip_new "Tip Text"
r_tip_new "Tip Text"
Now save that one and create a new one called "variables" and add this: (dunno what this does)

Code: Select all

var_intro = (r_global_new 0)
Now save this one. Now you need to create several folders. creatures, cutscenes, factions, maps and objects.

In creatures, create a config called "friends" and add this: (these are your friends that appear on your team)

Code: Select all

cret_friend1 = (r_char_new)
r_char_mdl *model*
r_char_faction $faction_friends

cret_friend2 = (r_char_new)
r_char_mdl *model*
r_char_faction $faction_friends

cret_friend3 = (r_char_new)
r_char_mdl *model*
r_char_faction $faction_friends
Save it and go to the "cutscenes" folder. Create a config called "intro", add this:
... Lets skip the cutscenes for now... :/ Remove your "cutscenes" folder. Go to your "factions" folder and create a CFG called "friends", then add this:

Code: Select all

faction_friends = (r_faction_new)
r_faction_name "Friends"
Save it and go into your maps folder, Create another config and call it "*mapname*", then add this:

Code: Select all

r_preparemap "*mapname*" (r_mapscript_new)
r_mapscript_load [
	r_spawn_creature self 0 @cret_friend1
	r_spawn_creature self 1 @cret_friend2
	r_spawn_creature self 2 @cret_friend3

	r_spawn_object self 10 @object_wooddoorleft

	//r_start_cutscene @cutscene_intro //You don't need cutscenes yet...
]
Now save that, Lucky for you, this is the last one, Go into your "objects" folder and create a config called "wood doors", now add this:

Code: Select all

object_wooddoorleft = (r_object_new)
r_object_name "quick little description"
r_object_mdl dan/door
r_object_script $generictriggerscript

object_wooddoorright = (r_object_dup $object_wooddoorleft)
r_object_mdl dan/door2
Thats it, As I said, 2.6.2/2.7 has a different RPG script, and unfortunately for some, Im using the SVN, so I get all the updated stuff. Lucky that its all available (more or less) in "data/rpg/games/mystara" for you to use.

Have Fun.
- Leo
Locked