Ok... I'm gonna try to make a "resume" of everything to making Random Missions.
I might forget something, everyone feel free to correct me
So, you have Patrolpaths. Good.
Now you need to make a Vignette Zone with an unique name. This is an example :
[zone
nickname = zone_li01_destroy_vignette_1
pos = -23536, 0, -52599
shape = SPHERE
size = 10000
mission_type = unlawful
sort = 99.500000
vignette_type = open
Your patrolpaths MUST at one point pass through these if you wish to get missions.
Remember, you will need patrolpaths for ennemies (So the patrol is defined for the bad guys), and if you wish, patrolpaths for allies (That will then act as reinforcement in some missions).
So you should have a Vignette, ennemies spawning and maybe even allies.
Now, to mbases.ini :
I suggest you to read about mbases.ini in TLR. The entry you must define in there will not only activate Random Missions, it will also be your ONLY way to put NPCs into your bars and dealers.
I will only concentrate on the parts needed to make Random Missions work. You will need to define the whole mbases.ini entry by yourself. You can use existing ones, but remember to change the names!
[MVendor
num_offers = 8, 12
This defines the number of missions actually possible to take when you click on the Jobs Board.
[BaseFaction
faction = li_n_grp
weight = 13
offers_missions = true
mission_type = DestroyMission, 0.000000, 0.112387, 30
npc = li0101_lnavy_001_f
npc = li0101_lnavy_002_m
npc = li0101_lnavy_003_f
This is a typical Faction defining entry in mbases.ini
It tells the game that the faction is existing into this base.
The bold entry is what is needed. When there is one in a BaseFaction entry, it tells the game that this faction will give missions here.
The 2nd and 3rd values are what define the toughness of the mission.
To understand what it means, check Diff2Money.ini
[Diff2Money
Diff2Money = 0, 1800
Diff2Money = 0.082100, 2200
Diff2Money = 0.112380, 2655
Diff2Money = 0.205130, 3219
Diff2Money = 0.351000, 3919
Diff2Money = 0.480490, 4792
Diff2Money = 0.657740, 5887
Diff2Money = 0.900380, 7264
Diff2Money = 1.232530, 9001
Diff2Money = 1.687200, 11201
Diff2Money = 2.309610, 13994
Diff2Money = 3.161630, 17551
Diff2Money = 4.327960, 22093
Diff2Money = 5.924540, 27904
Diff2Money = 8.110100, 35356
Diff2Money = 11.101920, 44928
Diff2Money = 15.197410, 57246
Diff2Money = 20.803740, 73118
Diff2Money = 28.478239, 93597
Diff2Money = 38.983860, 120051
Diff2Money = 53.365002, 146192
Diff2Money = 73.051361, 190050
Diff2Money = 100.000000, 247065
As you can see, "0.000000, 0.112387" will make missions giving 1800 Credits up to about 2655 Credits.
Once you defined alll of this, alongside with correctly making the mbases.ini entry for each of your base, you should get Random Missions
(I am warning you that this is only from memory and the SDK, I might be forgetting something)
Hope this helps,
FF
EDIT : Oh, also. I would suggest you to check your Signature code, it looks like it is broken. Maybe bp totally fixed it, I don't know
Edited by - FriendlyFire on 7/19/2005 3:42:00 PM