Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: easily placed extra civilians
Re: New feature: easily placed extra civilians[message #357485 is a reply to message #357453]
|
Mon, 03 June 2019 01:01
|
|
Kitty |
|
Messages:473
Registered:October 2017 Location: Germany |
|
|
netrunner wrote on Wed, 29 May 2019 18:04
is there any way to check if a grid is occupied? I am trying to spawn some mobs alongside the kingpin assassins when I do by random location some of them dont spawn, I figured is because they are set to spawn in a occupied grid but the createarmedcivilian function doesnt return anything.
the gridnumbers for the bountyhunters and other script-placed civilians are written in the lua-scripts (the number in the brackets, look at flugentes description). as far as I know, you have to check inside the map-editor if a grid-number is free (also to make sure there is no wall, deep water, etc.) . in the "docs"-folder of your JA2 1.13 installation there are two guide for map-editor. when in map-editor and moving mouse, you should see grid-number at the bottom-left of map-editor (picture of this in those guides)
I wouldn't add those armedCivilains of yours at the same place in scripts the bountyhunters of flugentes quest. Try to add the lines needed where the other civilains are.
o = math.random(1, 4)
if o == 1 then CreateArmedCivilain(CivGroup.YOUR_GROUP_GROUP, SoldierClass.SOLDIER_CLASS_ARMY, 15555, hostile )
if o == 2 Then CreateArmedCivilain(CivGroup.YOUR_GROUP_GROUP, SoldierClass.SOLDIER_CLASS_ARMY, 16666, hostile )
.
.
.
Something like this . 15555 and 16666 in the example are gridnumbers I just made up. The "Your Group" has to be defined in CivGroupNames.xml and also has to be added into civGroups in the lua-script, at least, that's what I have done.
Instead of the Bountyhunters rather look at how those blackmarket-guys are added or the d5 merchants whose spawning depends on kingpin to get the idea. If you still want to change bountyhunters look into flugentes description of the bountyhunter-quest (somewhere here under new features), there you'll find details on what he has done and which scripts, xmls are to be change (if I remember correctly, at least quest.lua had also stuff related to this).
I hope this isn't confusing more. Better start with reading flugentes description.
[Updated on: Mon, 03 June 2019 01:33]
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
|
|
|
|
|
|
New feature: easily placed extra civilians
By: Flugente on Sun, 03 April 2016 17:20
|
|
|
Re: New feature: easily placed extra civilians
By: smeagol on Sun, 03 April 2016 17:59
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Sun, 03 April 2016 19:27
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Sun, 03 April 2016 19:45
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Sun, 03 April 2016 22:30
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Sun, 03 April 2016 22:46
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Sun, 03 April 2016 23:56
|
|
|
Re: New feature: easily placed extra civilians
By: Kitty on Sun, 05 May 2019 19:11
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Tue, 05 April 2016 09:53
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Tue, 05 April 2016 14:07
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Tue, 05 April 2016 17:02
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Tue, 05 April 2016 23:50
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Wed, 06 April 2016 16:16
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Thu, 07 April 2016 01:06
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Thu, 07 April 2016 14:44
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: Wil473 on Thu, 07 April 2016 19:49
|
|
|
Re: New feature: easily placed extra civilians
By: CVB on Mon, 11 April 2016 21:02
|
|
|
Re: New feature: easily placed extra civilians
By: Flugente on Mon, 11 April 2016 21:13
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: Slax on Sun, 15 May 2016 21:35
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: Kitty on Mon, 03 June 2019 01:01
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: Kitty on Mon, 03 June 2019 06:46
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: tais on Sun, 03 April 2016 22:04
|
|
|
Re: New feature: easily placed extra civilians
|
|
|
Re: New feature: easily placed extra civilians
By: Kitty on Sun, 05 May 2019 18:56
|
|
|
Re: New feature: easily placed extra civilians
By: Kitty on Mon, 03 June 2019 00:47
|
Goto Forum:
Current Time: Mon Dec 02 07:06:59 GMT+2 2024
Total time taken to generate the page: 0.01190 seconds
|