Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Adding Fatima and Dmitri on custom map.. (SOLVED:)
Re: Adding Fatima and Dmitri on custom map..[message #366122 is a reply to message #366121] Tue, 28 May 2024 21:02 Go to previous messageGo to previous message
Kitty

 
Messages:505
Registered:October 2017
Location: Germany
Fatima:

In mapeditor,

- is she set as "priority existance" (set checkmark at "!" for her)
- look at her "schedules", set the first one to "Stay in Sector" (iirc, if not, she will disapear at some time, i.e. only be arround from 9 to 21 o'clock)
- her "civgroup" should be set as "Rebels" (same for all other Rebels)
- make sure to set her profile ID (101)
- set her as "stationary" to avoid her strolling arround

She has ID 101 in MercProfiles.xml
That same number is used for her .npc and .edt files

Many of them are stored in .slf-files, those are part of the original JA2 (= it comes with your version of JA2: CD, Steam, GoG, ... and can be find in "Data")
You need to unpack those .slf to get access, in this case the one named "NpcData.slf"
I use a tool called DragonUnpacker for this purpose, but there are probably other tools that can do it as well (just google something like "open .slf files" and see what you can find)

Next, you need an NPCEditor (I use "NPCEdit" from forum download section) to open those .npc-files
In case of Fatima, that's 101.npc

And to understand what you are seeing in those records, I suggest to read the Info gathered by Scorpion (see link below)
It's a good overview about what is what (NPC-Facts, NPC-Actions, etc)

Mind you, those Facts and Actions are hardcoded, the npc-scripts are just pointing to them (or set them true/false, etc)
Other things, like reactions to interactions (is there a difference to be approached friednly, threatening, etc ?) or where to move when are often free to alter, but the overall consequences should be kept in mind

NPC Scripts can surely be a tad mindboggling, especially the more outfleshed ones (like Fatima)
(she's taking Pacos condition into account, multiple checks at which GridNo she is when, she passes conversation to Dimitri and gets passed conversation from Carlos, she and paco switch sector and she teleports to basement, etc - in short, a lot is going on)

NPC scripting info (by Scorpion)

The examples in GameInit.lua are just that, it's just a coincidence the author used Fatima as example

-
Quests:

I guess there is no general answer to how to handle quests

Most part of quests is hardcoded to beginn with, but for modding purposes existing ones can be widely altered
A prime example is a mod like UC-1.13 (UrbanChaos). It has it's own unique story and quest and that's done by editing only external files (like .npc, .edt, voice-files, lua, etc) and no code change at all (there are many mods doing that, UC is just one of the most prominent and still running with latest 1.13)

You can set quests to start/end with .npc-files, but a lot could also be done with .lua (i.e., set quest to be finished if entering a sector or opening a door, hacking a computer or if a self-invented modder-lua-fact becomes true, etc) (maybe take a look into Overhead and Strateticmap for starters to get an idea what lua might can do)
-

Anyway, I highly recommend to read Scorpions NPC Script Info to get the idea

[Updated on: Tue, 28 May 2024 21:10]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

First Sergeant
 
Read Message
Read Message
Read Message
Previous Topic: Looking for a russian site link here on the forums..
Next Topic: I can't get MovementCosts.xml to work..
Goto Forum:
  


Current Time: Wed Jun 17 20:14:52 GMT+3 2026

Total time taken to generate the page: 2.40097 seconds