Page 1 of 1

i dont know how to create npcs

Posted: December 3rd, 2010, 4:22 pm
by andrew95434
i know the codes, but i dont know where are they placed (in what directory) and how i associate it with a character.
i dont know how can i add the npcs to the map, too.

sorry for my english

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 4:29 pm
by arcones
Just out of curiosity, are you using FPS mode, RPG mode, or Kart mode? (I'm assuming you aren't using the last one)

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 4:59 pm
by andrew95434
im using rpg mode

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:08 pm
by arcones
Ah, alrighty then. The next question would be, which version of Sandbox are you using? I'm assuming you're using 2.6.1. If that's the case, click on your Sandbox folder and double click on the folder titled docs. Once that's done, double click on the RPG-MODE_Readme.

I'd also recommend looking under data>rpg>and all files contained there because there really isn't a lot of documentation of RPG mode yet.

Arcones

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:14 pm
by andrew95434
i read the RPG-MODE_Readme but it doesnt contain nothing about npcs

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:26 pm
by arcones
I know, however, the documentation on NPC's isn't really around so here's what we have so far: RPG Documentation

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:35 pm
by Leo_V117
As of the next release. Current RPG scripting will be invalid as our wonderful RPG programmer (Hirato), Has replaced all the current RPG code with a different style. It seems that the newest RPG code is faster and more "to-the-point" than the previous version. I'll just say this to you andrew95434, Enjoy it while you can, 2.6.2 (2.7) will not include the current RPG-script.

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:37 pm
by andrew95434
i dont undestand nothing... there are not a tutorial of that? i only want to know where i place the npc's script, in what directory, and how i add it in the map

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:39 pm
by arcones
When coding, you need to create a .cfg file for the coding which also has the name of your map as the prefix. Ex: mapname.ogz mapname.cfg

Re: i dont know how to create npcs

Posted: December 3rd, 2010, 5:44 pm
by Leo_V117
Might as well try this...

Create (or load) a map and save it as "rpgtestscript/map".
go to "my_stuff/rpg/rpgtestscript" and copy "map-art.cfg", paste it into the same folder and call it "map", inside the "map.cfg", type this:

Code: Select all

//RPG Script
//Provided by Leo_V117
Below that, start writing the code for your NPC's.
Thats it!

Hope this helps.
- Leo