Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Lua Editing Tixa Map
Lua Editing Tixa Map[message #340281] Sat, 28 March 2015 13:14 Go to next message
smeagol

 
Messages:2713
Registered:June 2008
Location: Bremen, Germany
Would it be possible to have certain faction triggers added via lua script?

This is the idea I had:
If you kill the Warden in Tixa, the prisoners should become free after a day passed (Otherwise you would have the people remain in prison for no real reason).

I'm basically thinking of something like "check if NPC Warden is alive" -> remove all civilians with faction "tixa prisoner" from the map J9 at time xyz next day.

Should be doable with Lua, right? If not already in, how difficult would it be to add it? Any of the coders interested in adding it?


Re: Lua Editing Tixa Map[message #340283 is a reply to message #340281] Sat, 28 March 2015 14:51 Go to previous messageGo to next message
silversurfer

 
Messages:2133
Registered:May 2009
Isn't it possible to kill the warden with a spy? If so it wouldn't make sense if all the other guards simply leave afterwards. Deidranna will just send a replacement.
The player would have to free both the upper sector and the underground sector and hold it afterwards so Deidrannas troops cannot come back. IIRC at the moment we don't even have facts in the code for freeing the prison the first time.



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

Re: Lua Editing Tixa Map[message #340285 is a reply to message #340283] Sat, 28 March 2015 16:09 Go to previous messageGo to next message
smeagol

 
Messages:2713
Registered:June 2008
Location: Bremen, Germany
Yes, I'm not quite sure how to get it working yet. But I think there should be some side quest added to make it possible for the prisoners to be free (just finished the prison bigmap, that's why I'm interested in getting this done ;) ).



Re: Lua Editing Tixa Map[message #340309 is a reply to message #340285] Sun, 29 March 2015 21:19 Go to previous messageGo to next message
Scheinworld

 
Messages:905
Registered:December 2007
Location: Baltic Sea, Germany
Hi,

if the following two triggers are true:

"Tixa Liberated"
"Warden (#103) is dead."


Civilian from a new CivGroup like "Arulcan Prisoner" should be removed from a map (Tixa) eventually.

And/or to act the Arulcan Prisoner group like Factory Kids at least with two different dialogue (CIVxx.edt files) before and after liberating them.


Best regards; Schein...


Edit:

smeagol wrote on Sun, 29 March 2015 21:10
Yeah, that's the idea. The question is, if it is possible to set something like that up with what we have available atm or not.


In this way not without source code changes I think.

[Updated on: Sun, 29 March 2015 22:45]




Kermi's JA2 archive | JA2 (v1.13) Wiki & friends
"a mod is never finished, only releasable"

.- Will Gates


Re: Lua Editing Tixa Map[message #340311 is a reply to message #340309] Sun, 29 March 2015 22:10 Go to previous message
smeagol

 
Messages:2713
Registered:June 2008
Location: Bremen, Germany
Yeah, that's the idea. The question is, if it is possible to set something like that up with what we have available atm or not.


Previous Topic: IMP Items - Automatic Process
Next Topic: NCTH Values, Damage, and Armor Penetration
Goto Forum:
  


Current Time: Thu Aug 17 12:48:54 EEST 2017

Total time taken to generate the page: 0.00874 seconds