Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » All about modding JA2 » Conrad, Doreen & Carmen (Keeping characters in Arulco)
Conrad, Doreen & Carmen[message #351416] Thu, 02 November 2017 07:19 Go to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
If I change the script for Conrad in STRATEGICMAP.LUA where he is teleported to Sector 0,0 to be, instead, 3,16 (the palace), and place him in the sector via MapEditor -- will he actually appear in that sector later if not recruited and/or killed? Or what?

Regarding Doreen, I can't find any script controlling her leaving Middle Drassen and presumably teleporting to sector 0,0. How can I make it so she does not go away, but instead goes to a specific point in that same sector? Can I even do that?

Same for Carmen -- is there a way to keep him in Arulco after all the heads are collected and he pays for them?

EDIT: the object of this is to make them recruitable after their part in the storyline is done, except for Conrad -- he would become another bodyguard to Diedreanna.

[Updated on: Thu, 02 November 2017 07:57]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351417 is a reply to message #351416] Thu, 02 November 2017 14:05 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3777
Registered:July 2009
Doreen's still handled in Interface Dialog.cpp, Carmen in strategicmap.cpp



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Re: Conrad, Doreen & Carmen[message #351418 is a reply to message #351416] Thu, 02 November 2017 14:33 Go to previous messageGo to next message
silversurfer

 
Messages:2192
Registered:May 2009
It should work, at least for Carmen and Conrad. When the bounty hunter quest is finished Carmen is set to sector 0,0,0 in the game code but afterwards runs the LUA part which should reset him to sector coordinates that you want.



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: Conrad, Doreen & Carmen[message #351419 is a reply to message #351417] Thu, 02 November 2017 17:42 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Quote:
Doreen's still handled in Interface Dialog.cpp


So, if I create an InterfaceDialog.LUA script for Doreen I might be able to control her whereabouts?

What is the link to the JA2 code? I thought I had it bookmarked, but evidently not.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351420 is a reply to message #351419] Thu, 02 November 2017 18:55 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3777
Registered:July 2009
That's ... not how that works. Though you could try to just spawn her at some point in the existing scripts once her quest concludes. However, simulating movement in the sector could be tricky, maybe have her hang out in an adjacent one instead.



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Re: Conrad, Doreen & Carmen[message #351421 is a reply to message #351420] Thu, 02 November 2017 19:02 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Quote:

That's ... not how that works. Though you could try to just spawn her at some point in the existing scripts once her quest concludes. However, simulating movement in the sector could be tricky, maybe have her hang out in an adjacent one instead.


That's good enough. I did not mean to say I wanted to simulate movement on-screen, I just meant to say I wanted her to be accessible at a specific location.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351422 is a reply to message #351420] Thu, 02 November 2017 21:12 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
So, bear with me, to make Doreen appear after she walks off after she is spared and the children are freed I would use:

if ( CheckFact( Facts.FACT_CHILDREN_FREED_DOREEN_SPARED, 0 ) == true ) then
SetCharacterSectorX(Profil.DOREEN, x)
SetCharacterSectorY(Profil.DOREEN, x)
SetCharacterSectorZ(Profil.DOREEN, x)
end

[Updated on: Thu, 02 November 2017 21:13]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351423 is a reply to message #351422] Thu, 02 November 2017 21:28 Go to previous messageGo to next message
silversurfer

 
Messages:2192
Registered:May 2009
There is an example in strategicmap.lua that shows how to set a certain tile for a character:

SetProfileStrategicInsertionData(Profil.KYLE, 12380)


You could do the same to Doreen to put her into her house or something.



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: Conrad, Doreen & Carmen[message #351424 is a reply to message #351423] Fri, 03 November 2017 06:56 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Quote:
There is an example in strategicmap.lua that shows how to set a certain tile for a character:


Cool, thanks.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351425 is a reply to message #351423] Fri, 03 November 2017 07:57 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Hmm . . . it's not woring. I am missing something. Perhaps my " if ( CheckFact( Facts.FACT_CHILDREN_FREED_DOREEN_SPARED, 2 ) == true ) then " is not exactly right?

[Updated on: Fri, 03 November 2017 08:08]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351426 is a reply to message #351425] Fri, 03 November 2017 11:14 Go to previous messageGo to next message
silversurfer

 
Messages:2192
Registered:May 2009
edmortimer wrote on Fri, 03 November 2017 06:57
Hmm . . . it's not woring. I am missing something. Perhaps my " if ( CheckFact( Facts.FACT_CHILDREN_FREED_DOREEN_SPARED, 2 ) == true ) then " is not exactly right?

Did you define the fact "FACT_CHILDREN_FREED_DOREEN_SPARED" somewhere? It's not part of the default game.

There are two facts to check regarding Doreen:
FACT_DOREEN_HAD_CHANGE_OF_HEART // 63
FACT_DOREEN_ALIVE // 294

So if you check that both facts are true you make sure that she let the kids go and is still alive.



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: Conrad, Doreen & Carmen[message #351427 is a reply to message #351426] Fri, 03 November 2017 17:54 Go to previous messageGo to next message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Quote:
Did you define the fact "FACT_CHILDREN_FREED_DOREEN_SPARED" somewhere? It's not part of the default game.


It was in StrategicTownLoyalty.lua so I used it -- that's why I asked for the link to the game code because I wanted to see how variables were defined.


Quote:
There are two facts to check regarding Doreen:
FACT_DOREEN_HAD_CHANGE_OF_HEART // 63
FACT_DOREEN_ALIVE // 294

So if you check that both facts are true you make sure that she let the kids go and is still alive.


Thank you! That ought to do it.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Conrad, Doreen & Carmen[message #351430 is a reply to message #351427] Sat, 04 November 2017 02:01 Go to previous messageGo to next message
silversurfer

 
Messages:2192
Registered:May 2009
The development code can be found here.
The development GameDir is here.

The old stable code is located here.
The old stable GameDir is here.



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: Conrad, Doreen & Carmen[message #351434 is a reply to message #351430] Sat, 04 November 2017 07:10 Go to previous message
edmortimer

 
Messages:856
Registered:January 2015
Location: Home Free
Thank you for those links. Also, the Doreen FACTs you gave me worked!




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Previous Topic: 3D models needed?
Next Topic: JA2 archive
Goto Forum:
  


Current Time: Thu Nov 23 01:43:05 EET 2017

Total time taken to generate the page: 0.01501 seconds