Jump to content

Accept Yield and Open Dialog


CaptainChaos

Recommended Posts

Posted

Ok, so I've been flailing about in the CK for a while and created a dialog concerning surrendering to an NPC that fits certain conditions.

 

Basically, what I want to do is that if you're in combat with a Bandit (or any faction I choose) and you sheath your weapon (or whatever criteria that's possible to pass off as a "yield,") he will stop combat and force a dialog with the player.

 

I'm sure this is something stupidly simple, but I've tried all manner of stop combat scripts and forcegreets that apply to bandits (actually anyone, for testing) and I can't figure out how to accomplish this. On that note, I can't find in the CK where guards/citizens specifically accept yields (another bit of info I wouldn't mind having). All I can find is a gamesetting for sTopicSubtypeCombatAcceptYield, yet no links or any other reference to it in the game.

 

 

Any help would be greatly appreciated.

Guest Plastrader
Posted

Hmm...

I think the yield system is something built into the game mechanics.

 

There's no event OnYield or something similar that we can look at.

However, this could be achieved with scripting, but one need to attach scripts to every npc, which by now is a bit messy.

 

What I found relating to Yields in the CK is:

DialogueCrimeGuards

It a quest under "Generic\Crime\" or do a "all" search with the text.

 

The player dialogues there has as one of its conditions:

GetAlarmed

 

GetAlarmed in Papyrus is IsAlarmed - Actor.

So:

MyEnemy.isAlarmed()

Would return true if in combat.

 

Maybe it's switched to false if the player lowers his/her weapons.

 

Perhaps this wasn't at all helpful but it was the only thing I could find, I haven't had time to dwell deeper in the matter either because I have issues with Sky@¤#console&%rim at the moment.

Posted

Hmm...

I think the yield system is something built into the game mechanics.

From what I've found, pretty much every forcegreet is handled via a forcegreet AI package applied to an actor (or group of actors) that fire off when certain conditions are met. Such as the WIadditem one where if you drop a weapon on the ground, citizens will ask to have it (or give it back) whereas guards will bitch you out about it.

 

However, like you said: there is no actual package that I can find which I would like to model my mod on: that when fighting guards, sheathing your weapon gets them to stop combat then use the CrimeGuardDialog forcegreet. I can't even find out what makes average citizens/friends stop combat (well, sometimes) when you sheath a weapon.

 

I haven't had much time time to devote to this, but I'm going to attempt a system where the player can physically drop their weapon to initiate a bastardized version of the "wiadditem" dialog and package. The problem is Skyrim gets real weird with stuff when actors are involved in combat.

  • 2 months later...
Posted

Ok, so I've been flailing about in the CK for a while and created a dialog concerning surrendering to an NPC that fits certain conditions.

 

Basically, what I want to do is that if you're in combat with a Bandit (or any faction I choose) and you sheath your weapon (or whatever criteria that's possible to pass off as a "yield,") he will stop combat and force a dialog with the player.

 

I'm sure this is something stupidly simple, but I've tried all manner of stop combat scripts and forcegreets that apply to bandits (actually anyone, for testing) and I can't figure out how to accomplish this. On that note, I can't find in the CK where guards/citizens specifically accept yields (another bit of info I wouldn't mind having). All I can find is a gamesetting for sTopicSubtypeCombatAcceptYield, yet no links or any other reference to it in the game.

 

 

Any help would be greatly appreciated.

 

I'm no modder, but potentially you could "steal" the script from the guards, since you can yield to them.

I don't know how this works, so I'm probably talking bollocks.

Archived

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

  • Recently Browsing   0 members

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