Jump to content

[LE] How tro trigger a brawl in a mod?


Recommended Posts

Hello everybody!

 

I'm totally new to modding and I'm trying to create a mod that goes somewhat as follows:

 

Player is in town minding his own business when a random NPC approaches (him/her) and challenge (him/her) to a brawl.

Then player can answer with (Persuade) or Intimidate, and depending on the outcome, the brawl may start.

If there is a brawl:

If Player wins brawl, then NPC says a dialogue "Yeah, you are strong".

If NPC wins the brawl, then NPC will mock player.

 

As I am a total n00b, in modding, what I did was grab another mod that already makes random NPCs approach the player, edited a couple of dialogues, and created the branches, topics and conditions depending on who is approaching player.

 

What I have never been able to do is start the actual brawl!.

In other forums, they talk about looking at favor017, or Favorgeneric quest and I have tried to trigger the brawl using the following line in the Dialogue script fragment:

 

(GetOwningQuest() as FavorDialogueScript).Brawl(akSpeaker)

 

I think I need to add a property, and I did it like this:

 

;BEGIN FRAGMENT Fragment_2
Function Fragment_2(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
(GetOwningQuest() as FavorDialogueScript).Brawl(akSpeaker)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

FavorDialogueScript Property NewProperty Auto

 

The script compiles with no errors, but the brawl never starts.

 

What am I missing?, do I need to add another property?, do I need to add someone to some faction or set a different quest to a certain stage?.

If so, how do I do that?

 

Any help is appreciated

Link to comment
Share on other sites

  • 2 weeks later...

I'm a beginner too. I've just incorporated brawling into a quest and here's what I did. To start the brawl, you'd do:

NewProperty.Brawl(akSpeaker)

And make sure to set the property to DialogueFavorGeneric in the properties window. That starts the brawl, so now you'll need to go to the DGIntimidateQuest and modify the dialogue there to handle what happens afterwards. In there is a topic called DGIntimidateTopicVictory, which controls the bleedout dialogue when the NPC is laying on the ground. If you don't put anything here, they'll say the generic lines "You got me..." etc. I put in some dialogue in my quest so that he just coughs and weezes.

 

The next topic is DGIntimidateVictoryYes. Go into that topic and copy one of the existing infos, like Uthgerd. You'll see in there a snippet to advance her favor quest. Change the unique id in the condition to the NPC who started the brawl, and in the snippets, change the SetStage to the appropriate stage in your quest. Also don't forget to advance the stage of the DGIntimidateQuest to 100. Once you've won the brawl and talked to the NPC, it'll advance.

 

All of this assumes it's a specific NPC who is going around starting these brawls. If you can be challenged by any random NPC in the world (using aliases like in the Hired Muscle Companions quest), it's a lot more complicated.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...