Quote from: carch on April 08, 2014, 01:03:50 PM
A group of miners have struck Microcline! (joking, dwarf fortress reference)
+1. Requesting HFS.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: carch on April 08, 2014, 01:03:50 PM
A group of miners have struck Microcline! (joking, dwarf fortress reference)
Quote from: DLirry on April 07, 2014, 03:27:08 AM
Hello!
I've tested your mod - it worked perfectly.
My guess is that your inner structure of .mpk file was not exactly correct. Root of every .mpk can have only 3 entities:
header.xml - mandatory
data - folder
content - folder
Meanwhile, a tip - it's better to to test mods in multiplayer mode:
first launch server .exe file from folder /server, and then launch client in multiplayer mode, enter "localhost" as address.
If something doesn't work right, you can just look at server app - it will, probably, show an error in scripts or xml...
using(ship);
using(relations);
using(npc);
using(console);
function OnCheckRequirements()
{
return true;
}
function OnStart()
{
}
function OnDialogue()
{
var npc_ship_id = topic.GetCurrentNpcShipId();
var faction = relations.GetShipFaction(npc_ship_id);
if(faction == "order")
{
topic.AddPhrase("100", "We, The Order, always have some job for gifted young fellows, like you.");
topic.AddPhrase("101", "If you feel like killing pirates and other criminals, you might want to talk to our Security Officer, he is in charge of this sort of stuff.");
topic.AddPhrase("102", "Talk to our Intendant for delivery and other supply jobs. Dull stuff, but well-paid.");
topic.AddPhrase("103", "You can visit our Commander, if you think you're ready for real challenges.");
}
else if(faction == "freedom")
{
topic.AddPhrase("200", "TESTING - Well, of course, brother, if you're looking for an honest work, we will gladly provide!");
topic.AddPhrase("201", "Talk to people on the station, there bound to be someone looking for some help.");
}
else if(faction == "fanatics")
{
topic.AddPhrase("300", "Our masters will highly appreciate your services to them. Working for masters is the only way to true ascension.");
}
else if(faction == "pirates")
{
topic.AddPhrase("400", "We'll give you job, just don't blew it.");
topic.AddPhrase("401", "Go talk with someone on the station.");
}
else
{
topic.AddPhrase("500", "Well, try to walk around the station, ask some people, maybe you'll find some job.");
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<id>test</id>
<title>Language test</title>
<author>Ophidios</author>
<description>TESTING.</description>
<version>0.0.1</version>
<updated>06.04.2014</updated>
<modtype>2</modtype> <!-- 1 - server, 2 - client-server, 3 - client -->
</root>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<mods>
<mod>core_0.1.0</mod>
<mod>test_0.0.1</mod>
</mods>
Page created in 0.056 seconds with 11 queries.