Aller au contenu

Photo

Resetting a global int


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

#1
PJ156

PJ156
  • Members
  • 2 988 messages
In my first mod I use the global int Emb to track the npc's attitude to a player.

In my second mod, in my infinite wisdom I changed it to emb (lost the capital)

Can I get the global in "Emb" by script and reset "emb" to equal it? I'm sure it's simple but it's not lilac soul :)

Cheers,

PJ

#2
kevL

kevL
  • Members
  • 4 075 messages
Are the two mods parts of the same Campaign?

if so,

int Emb = GetGlobalInt("Emb");
SetGlobalInt("emb", Emb);


personally i'd use Agent Ransack to find all instances and replace them manually, but that might not be practical :\\

#3
PJ156

PJ156
  • Members
  • 2 988 messages
Agent ransack?

They are in the same campaign so I can oen with that script in a convo, Thanks KevL.

PJ

#4
kevL

kevL
  • Members
  • 4 075 messages
Agent Ransack

internal file searching. I've tried other ones but this is right up there. It finds strings in all formats of NwN2 files, it seems. I use it mainly to find function names & uses in obscure #includes - or varnames like "Emb"

should work on Tags also,