Jump to content

Hey you wana talk or busy?!


Recommended Posts

Posted

Which mod gives this annoying as dialogue. This low iq fucktards keeps harrassing me over and over and when i say i don't wan't to talk now they keep prompting that question again to the point it make me wan't to shoot my brain off.

3465467758967969070.jpg

Posted (edited)

Run this in xEdit, it should find it for you:

Spoiler
{
  Find dialogue
}
unit UserScript;

function Initialize: integer;
var
  i: integer;
  j: integer;
  f: IInterface;
  e: IInterface;
  sig: string;
begin
  // iterate over loaded plugins
  for i := 0 to Pred(FileCount) do begin
    f := FileByIndex(i);
    
    for j := 0 to Pred(RecordCount(f)) do begin
        e := RecordByIndex(f, j);
        sig := Signature(e);
        if sig = 'DIAL' then SearchDial(e);
        if sig = 'INFO' then SearchInfo(e);
    end;
  end;
end;

procedure SearchDial(e: IInterface);
var
    m: string;
begin
    m := GetElementNativeValues(e, 'FULL - Name');
    
    if pos('do you want to talk a bit', m) > 0 then
        AddMessage(IntToHex(GetLoadOrderFormID(e), 8) + ' ' + m);
end;

procedure SearchInfo(e: IInterface);
var
    m: string;
    i: integer;
    responses, response: IInterface;
begin
    responses := ElementByName(e, 'Responses');
    
    for i := 0 to Pred(ElementCount(responses)) do begin
        response := ElementByIndex(responses, i);
        m := GetElementEditValues(response, 'NAM1');
        
        if pos('do you want to talk a bit', m) > 0 then
            AddMessage(IntToHex(GetLoadOrderFormID(e), 8) + ' ' + m);
    end;
end;

end.

 

 

Edited by traison

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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