Jump to content

Flirt Packs - yes, no?


Domi

Recommended Posts

I'd like to see if there is interest in Flirt-Packs included with the romances.

 

I'd like to emphasise that Compton-style PC-initiated flirts cannot be done in IWD2. INSTEAD what I can realistically do is NPC-initiated flirts that will show up from time to time and alternate randomly between the NPC interacting in a romantic way with the PC and PC seeing a menue of options suggesting some actions towards the NPC. It will obviously include the "don't flirt with me any more" button, but it cannot be set and reset as you cannot initiate a dialogue with a joinable NPC.

Link to comment
Good question. Would not 'press Ctrl+L for flirting' be too mood-breaking?

Heh :blush:

It's still better than 'no flirts at all' :D

 

A detail: rather than Ctrl-L, it'd have to be a simle L. I believe you can also use another ASCII character for that, if you update accordingly your hotkey.ids (or however it's called), but I'm not sure (I.E. I haven't tested). In any event, I don't think you can use ctrl-l for that, sorry :hm:

(also, PLZ choose another letter - L stands for Quick Load ;) )

 

EDIT: also, you can use multiple components (and nifntiness like *_READLN, SUBCOMPONENTS and *_MACRO) to let the user choose the method of activating the flirts - example code will be posted ASAP ;)

Link to comment

Heh, I was with Meira thinking L for love. T for "talk", P for PID or "F" for flirts should be fine (if we can suspend other associations with F). Is there anywhere a full list of buttons? Because what I have from gibb's cheat central (granted it's the Ctrl-ones) is:

 

Cheat Keys

 

After using the ctrlaltdelete:EnableCheatKeys() command the following cheat keys are activated.

 

CTRL+1 Change armor level animation

CTRL+2 Fade screen to black

CTRL+3 Fade screen to normal

CTRL+4 Highlight background-interactive objects

CTRL+6 Change avatar animation previous

CTRL+7 Change avatar animation next

CTRL+8 Highlights the text boxes

CTRL+9 Highlight the sprites

CTRL+0 Unknown

CTRL+A Animation avatar (see CTRL+S)

CTRL+C Jump to next chapter

CTRL+D Display some numbers (framerate related?)

CTRL+E Remove the fog of war from the current area

CTRL+F Turn the character

CTRL+J Teleport to cursor position

CTRL+K Creature under cursor kick out party

CTRL+M (Followed by ENTER) Debug Dump

CTRL+Q Creature under cursor joins party

CTRL+R Heals character under cursor

CTRL+S Select avatar animation

CTRL+X Extended position information

CTRL+Y Kills creature under cursor

Link to comment

Heh, U ROXXOR! Wow, I did not even know the possibility existed. Anyway, "P" seems not to stand for anything in the default configuration, so it will probably be the way to go. But yay, if flirts can be summoned this way, it'll be awsome. :blush:

Link to comment

I do not think it would be mood-breaking at all. I cannot speak for everyone, but from one player's perspective, it makes no difference to use a talk button or a hotkey. It's just pressing a different button.

 

But I love the possibility of flirts :blush:

Link to comment
Heh, U ROXXOR! Wow, I did not even know the possibility existed. Anyway, "P" seems not to stand for anything in the default configuration, so it will probably be the way to go. But yay, if flirts can be summoned this way, it'll be awsome. :D

 

"P" for passion! :hm:

 

I'm all for it. :blush:

Link to comment
Would there be 'friend packs' for the non-romanceables? Like in, say, the BG1 NPC project where you could just ask how they were, etc?

 

Well, my understanding is that what the Bigg is suggesting will not be tied to an NPC, ie it will just spawn a default action. As such, I can reasonably see it going into a default option a-la "You'd like to chat with one of your companions", and then the choice of "Flirt with Rizdaer" or "Trade a tale with Salomeya". The simpler it is in the beginning, the better - simpler code, less writing. Or - and I am very fuzzy here, and really don't know what I am talking about yet - each romance will require a separate hot-key, and that's bad news (not so many are out there). The biggest pay-off will probably be with the flirt-packs.

Link to comment

You can either bind a different key to each character, since you can code this in the character-specific script. Or, you can append to DPLAYER2.BCS (or IWD2 equivalent) and use the same hotkey for every NPC. Thanks to SUBCOMPONENT, *MACRO and READLN makes it easy to have the player to choose their favorite hotkey for each character, or none at all (meaning you won't install PIDs for the NPC in question).

 

As I said before, sample TP2 is oncoming :)

Link to comment

This code works as advertised under ToB/Tutu (IE, if you add NPC1.dlg and NPC1.baf to a random .cre and have it join, he will pop a banter at you when you press the chosen hot-key, but not if a totally different NPC is chosen). For eventual IWD2-specific trouble in having the dialogue trigger, see the existing example from IWD2 Ease of Use.

 

DEFINE_ACTION_MACRO ~NPC1 PID~ BEGIN
 <<<<<<<< npc1.d
BEGIN npc1

IF ~True()~ BEGIN always
  SAY ~Hi, <GABBER>, my name is NPC1.~
	IF ~~ THEN EXIT
END
 >>>>>>>>
 <<<<<<<< npc1.baf
IF
  HotKey(___HOTKEY___)
THEN
  RESPONSE #100
	StartDialogueNoSet(Player1)
END
 >>>>>>>>
 OUTER_INNER_PATCH "2" BEGIN
TO_UPPER hotkey
WRITE_EVALUATED_ASCII 0 "%hotkey%" #1
READ_BYTE 0 char
 END
 PRINT ~Installing NPC1 PID, it'll run on %char% ASCII hotkey, which is %hotkey%~
 COMPILE ~npc1.d~
 COPY - npc1.baf npc1.baf
REPLACE_TEXTUALLY ~___HOTKEY___~ ~%char%~
 COMPILE ~npc1.baf~
END

DEFINE_ACTION_MACRO ~NPC2 PID~ BEGIN
 <<<<<<<< npc2.d
BEGIN npc2

IF ~True()~ BEGIN always
  SAY ~Hi, <GABBER>, my name is NPC2.~
	IF ~~ THEN EXIT
END
 >>>>>>>>
 <<<<<<<< npc2.baf
IF
  HotKey(___HOTKEY___)
THEN
  RESPONSE #100
	StartDialogueNoSet(Player1)
END
 >>>>>>>>
 OUTER_INNER_PATCH "2" BEGIN
TO_UPPER hotkey
WRITE_EVALUATED_ASCII 0 "%hotkey%" #1
READ_BYTE 0 char
 END
 PRINT ~Installing NPC2 PID, it'll run on %char% ASCII hotkey, which is %hotkey%~
 COMPILE ~npc2.d~
 COPY - npc2.baf npc2.baf
REPLACE_TEXTUALLY ~___HOTKEY___~ ~%char%~
 COMPILE ~npc2.baf~
END

DEFINE_ACTION_MACRO ~choose hotkey~ BEGIN
 OUTER_INNER_PATCH "" BEGIN
SET finish = 0
WHILE !finish BEGIN
  PATCH_PRINT ~Please insert your hotkey, followed by Enter (a single character, please).~
  PATCH_READLN ~hotkey~
  INNER_PATCH "%hotkey%" BEGIN
	SET char = 0
	FOR (i = 0; char != 0xffff; i +=1) BEGIN
	  READ_BYTE i char ELSE 0xffff
	END
	PATCH_IF i = 2 BEGIN
	  SET finish = 1
	END
  END
END
 END
END

BEGIN ~Using 'L' as an hotkey~
SUBCOMPONENT ~Install PID for all NPCs?~
 OUTER_SPRINT hotkey ~L~
 LAUNCH_ACTION_MACRO ~NPC1 PID~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

BEGIN ~Using 'P' as an hotkey~
SUBCOMPONENT ~Install PID for all NPCs?~
 OUTER_SPRINT hotkey ~P~
 LAUNCH_ACTION_MACRO ~NPC1 PID~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

BEGIN ~Choose your own hotkey~
SUBCOMPONENT ~Install PID for all NPCs?~
 LAUNCH_ACTION_MACRO ~choose hotkey~
 LAUNCH_ACTION_MACRO ~NPC1 PID~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

BEGIN ~Choose differently for every NPC.~
SUBCOMPONENT ~Install PID for all NPCs?~
 COPY_EXISTING ~sw1h01.itm~ ~override/differently_each_npc.g3~

BEGIN ~Using 'L' as an hotkey~
SUBCOMPONENT ~Install PID for NPC1?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 OUTER_SPRINT hotkey ~L~
 LAUNCH_ACTION_MACRO ~NPC1 PID~

BEGIN ~Using 'P' as an hotkey~
SUBCOMPONENT ~Install PID for NPC1?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 OUTER_SPRINT hotkey ~P~
 LAUNCH_ACTION_MACRO ~NPC1 PID~

BEGIN ~Choose your own hotkey~
SUBCOMPONENT ~Install PID for NPC1?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 LAUNCH_ACTION_MACRO ~choose hotkey~
 LAUNCH_ACTION_MACRO ~NPC1 PID~


BEGIN ~Using 'L' as an hotkey~
SUBCOMPONENT ~Install PID for NPC2?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 OUTER_SPRINT hotkey ~L~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

BEGIN ~Using 'P' as an hotkey~
SUBCOMPONENT ~Install PID for NPC2?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 OUTER_SPRINT hotkey ~P~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

BEGIN ~Choose your own hotkey~
SUBCOMPONENT ~Install PID for NPC2?~
REQUIRE_FILE ~override/differently_each_npc.g3~ ~You already chose.~
 LAUNCH_ACTION_MACRO ~choose hotkey~
 LAUNCH_ACTION_MACRO ~NPC2 PID~

 

[detail]Actually, when I ctrl-Q'd the random .cre in my party, he got his dialogue changed to Multig, but the whole idea seems to work.[/detail]

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...