Aller au contenu

Photo

Editing Orzammar king support variable?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
DarthRic

DarthRic
  • Members
  • 555 messages

Hey, just to preface this i'm a noob to the toolset.

 

I've been doing the Orzammar portion of DA: O lately and realized I missed an oppertunity to increase the "HARROWMONT_SUPPORT" variable (declaring your support for Harrowmont at the end of the proving). 

I was wondering if it is possible to edit this variable to increase it to the desired level instead of going back and re-doing all the deep roads again :S and if so how?

 

Thanks



#2
DarthGizka

DarthGizka
  • Members
  • 867 messages

It's certainly possible with a bit of script, and there may even be a debug script that does it already... Here's the relevant part from my general debug/spelunking script:

 

void set_support_ (string parameter, int for_Harrowmont)
{
   object module = GetModule();

   if (parameter != "")
   {
      string var_name = for_Harrowmont ? ORZ_SUPPORT_HARROWMONT : ORZ_SUPPORT_BHELEN;

      SetLocalInt(module, var_name, StringToInt(parameter));
   }

   print_("Bhelen " + IntToString(GetLocalInt(module, ORZ_SUPPORT_BHELEN)));
   print_("Harrow " + IntToString(GetLocalInt(module, ORZ_SUPPORT_HARROWMONT)));
}

 

However, the support values seem to have no discernible effect whatsoever (apart from changing the output of script written specifically to dump those values). So why bother?



#3
DarthRic

DarthRic
  • Members
  • 555 messages

The only thing it affects is how many people help Bhelen when he fights after loosing the throne.  Being a lawful goody two shoes character I wanted to avoid unnecessary casualties :D (I'm doing my 'perfect playthrough' for DA: I right now).

 

Like I said I'm a real noob with the toolset, is there a guide somewhere as to how to increase the variable by one? (im familiar with programming in general just not the DA toolset).



#4
DarthGizka

DarthGizka
  • Members
  • 867 messages

The only thing it affects is how many people help Bhelen when he fights after loosing the throne.


No, it doesn't. At least not on the PC - neither in the toolset version nor in patch level v1.05, which are the only ones I could check. The topic came up recently and I did check very, very thoroughly. The spelunking code I posted earlier was written specifically for these tests.

Here's a fairly minimal (but reasonably malleable) script for bumping Harrowmont support:

#include "orz_constants_h"

// set to 1 only when you're done debugging!
const int BUMP_BY_ = 0;

void print_ (string s, int colour = 0xFF00FF)
{
   DisplayFloatyMessage(GetMainControlled(), s, FLOATY_MESSAGE, colour, 3.0f);
}

void bump_local_int_ (string var_name)
{
   object module = GetModule();
   int n = GetLocalInt(module, var_name) + BUMP_BY_;
   SetLocalInt(module, var_name, n);
   print_(var_name + " -> " + IntToString(n));
}

void main ()
{
   bump_local_int_(ORZ_SUPPORT_HARROWMONT);
}

It would be better to add a bit of command line processing to make the thang more useful for dumping and/or modifying the support variables directly, along the lines of my spelunking code. But if you just want to bump by one, that you can do.