Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Make Brenda great again (a probably strange question)
Make Brenda great again[message #361591] Sat, 17 October 2020 06:55 Go to previous message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
I changed Brendas npc-script. When going to her house after the dialogue at the shop, she's available for another conversation. If approached by female, she'll ask if player could look for the other videos she mentioned in her Hans-dialogue. When the player managed to aquire those and give them to her, as part of the reward a female can have sex with her (just like Madame is telling us for ~20 years). It's planned to get stretched out, so that it may can be used for a quest. If I can pull it of, a new one, if not, implemented in an existing.
So far so good. But I noticed that none of the buffs and debuffs the brothel gives, are happening. No morale boost, no fatigue and no infection with diseases. As it seems, those are restricted to the brothel and is happening due to an Action-Item on the map. The npc-action that is used in the npc-script is part of this, but itself alone doesn't grant anything beside smiley.


As far as I can tell, this is defined at:

LuaInitNPCs.cpp ACTION_ITEM_SEX

Full Action Item Sex


and especially this part inside grants the effects:


                                                        HandleMoraleEvent( MercPtrs[ ubID ], MORALE_SEX, gWorldSectorX, gWorldSectorY, gbWorldSectorZ );
							FatigueCharacter( MercPtrs[ ubID ] );
							FatigueCharacter( MercPtrs[ ubID ] );
							FatigueCharacter( MercPtrs[ ubID ] );
							FatigueCharacter( MercPtrs[ ubID ] );
							HandlePossibleInfection( MercPtrs[ubID], NULL, INFECTION_TYPE_SEX );


The npc-action used in the npc-script, lacks this.

InterfaceDialogue.cpp NPC_ACTION_SEX


case NPC_ACTION_SEX:
	// Delete menu
	//DeleteTalkingMenu( );
	//gFadeOutDoneCallback = DoneFadeOutActionSex;
	//FadeOutGameScreen( );
	SetPendingNewScreen( SEX_SCREEN );
	break;



I tried to copy the part from LuaInitNPCs to InterfaceDialogue, but to no surprise, this failed. And since I can't code, I don't even know what went wrong. From what I see, the definition for "ubID" and "FatigueCharacter" are invalid and I couldn't find out how to solve this.

So, here is the question:

Can this be done at all? If yes, is it possible to give me some hints what I may could try?
And if it can't be done in code, is it probaly possible to do something in lua-scripts? Tried setting the npc-action = true in StrateticEventHandler but adding the fatigue and disease failed again.


And yes, I'm aware that this is a strange topic - but Madame is telling my female mercs to go visit Brenda since ages ...

[Updated on: Sat, 17 October 2020 06:55]




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

Master Sergeant
 
Read Message
Read Message
Previous Topic: Unstable SCI 8918 + WF maps
Next Topic: Need Help Making a C-Ration BigItem STI and MDITEM icons
Goto Forum:
  


Current Time: Sun Dec 01 14:33:08 GMT+2 2024

Total time taken to generate the page: 0.00723 seconds