Home » MODDING HQ 1.13 » v1.13 General Development Talk » Mine with reptions (Can someone help me to find out a way how to select a mine with creatures?)
Mine with reptions[message #361654] Sun, 25 October 2020 04:17 Go to next message
MH17 is currently offline MH17

 
Messages:46
Registered:November 2018
Location: Antarctica
Hi! I'm exploring function InitCreatureQuest() in file Creature Spreading.cpp. I'd like to preselect the mine in Alma as a nest of the insects. Straightforward modification of iChosenMine parameter didnt help me, is there anything else I have to take into account?

Thanks a lot in advance!

Report message to a moderator

Corporal
Re: Mine with reptions[message #361658 is a reply to message #361654] Sun, 25 October 2020 09:58 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
Wouldn't it help if you only set "Infectible = 1" for Alma in initmines.lua? This way only Alma could get infected, after you conquered the sector.


Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: Mine with reptions[message #361697 is a reply to message #361658] Wed, 28 October 2020 13:09 Go to previous message
MH17 is currently offline MH17

 
Messages:46
Registered:November 2018
Location: Antarctica
Hello SilverSurfer!
Straightforward modification of "Infectible = 1" for Alma doesnt work, but it seems to me I have managed to complete the quest!
The solution is in the folder "scripts" containing the *.lua code.
After few corrections in the function "CheckConditionsForTriggeringCreatureQuest", which launches 'InitCreatureQuest" I got the nest in the city of Troy (or Alma in Vanilla JA2).

The code testing is still in progress, but quick trip around Danubia (Urban Chaos mod) with cheat-codes doesnt reveal any problem.

[Updated on: Wed, 28 October 2020 13:11]

Report message to a moderator

Corporal
Previous Topic: Latest uncompiled builds?
Next Topic: Recoil control in NCTH
Goto Forum:
  


Current Time: Thu Apr 18 20:41:40 GMT+3 2024

Total time taken to generate the page: 0.00721 seconds