Jump to content

Home

My mod.


Darth Dex

Recommended Posts

  • Replies 130
  • Created
  • Last Reply

As Achillies said, you will have to set a global variable when you kill the npc. (And you were right too when you said you remember reading it, I think I posted this a few times already)

 

The script would be:

void main()
{
   SetGlobalNumber("MY_PLOT", 1);
}

You can replace my plot by whatever you want, it is not important, it won't appear in the game. Just make sure it is not already used by the game. Number 1 is also aleatory but I suggest a logical suite of numbers: 1, 2, 3, 4...

 

Then, you will have to add a line to globalcat.2da. In the "type" field, type Number.

 

Then to make the a reply avaibable in a dialog only if you have kill that npc you will have to attach the following script in the active field in the RepliesList of the EntryList of the dialog:

int StartingConditional()
{
   int nResult = GetGlobalNumber("MY_PLOT");
   if (nResult == 1) 
   {
       return TRUE;
   }
   return FALSE;
}

 

Here is a screenshot of where to attach the script to the dialog (dlg file opened with GFFEditor):

http://img.photobucket.com/albums/v144/Darth333/activefield.jpg

 

And with DLGEdit:

http://img.photobucket.com/albums/v144/Darth333/activedlg.jpg

 

Hope this helps :)

Link to comment
Share on other sites

Originally posted by Darth Dex

No more like:

:jawa I have a price on my head.

:fett: I'll collect that!

:jawa NOOOOOOOOOOO!!!!!

 

I know it isn't helpful, but...

 

:lol:x5

:rofl:

Fett, claiming a bounty on a little Jawa. HAHAHAHA...

(I like the :fett: (I wonder why *cough*lookatavatar*cough*)

HAHAHA... *walks out laughing*

 

:fett:

Link to comment
Share on other sites

Okay, Darth333 or anyone else who's good at scipting, like Stromtrooper793 help me out.

void main()

I made this scipt to attach to my uti files on death scipt. When I try to compile it, I get some error about not reulnizing KOTOR_DEFAULT_EVENT_ON_DEATH is there some way I can change this or something?

{

SetGlobalNumber("TAT_BOUNTYDEX", 1);

ExecuteScript("k_ai_master", OBJECT_SELF, KOTOR_DEFAULT_EVENT_ON_DEATH);

/*

if(!GN_GetSpawnInCondition(SW_FLAG_AI_OFF))

{

SpeakString("GEN_I_AM_DEAD", TALKVOLUME_SILENT_TALK);

//Shout Attack my target, only works with the On Spawn In setup

SpeakString("GEN_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);

}

if(GN_GetSpawnInCondition(SW_FLAG_EVENT_ON_DEATH))

{

SignalEvent(OBJECT_SELF, EventUserDefined(1007));

}

*/

}

Link to comment
Share on other sites

Hey darth dex just cause they dont post dosent mean that they dont whant it...i have been looking in on this tread sometimes....i really like your mod idea and i will download if it is relesed :D :D :D :D Besides like redhawk said some will like it some wont you cant please everyone :D Mod for yourself first..then release if you like it...... :D

Link to comment
Share on other sites

Well I thought I got it after you showed me, in other theard "DLG Edit". Then I saw how Stromtrooper did it, I thought I understood, but I didn't. Even the module makeing thing, by Doom_dealer didn't help :( Hmmm.....these are the to things I still can't figure out:

Starting list

Reply List

 

You see I can add entries, but not adding text I can never get the text I want or anything. The Entry list is easy (now anyways, but the Reply and Strating is hard).

Link to comment
Share on other sites

Ohhhhhhhhhhhh, now I get it, I just wasn't doing it, right thanks a ton Darth333!!!!!!!!!!!!!!!!!!!!!!!! Once again you have saved the day:D.

 

Edit- The Strating list is still confusing I read his readme and it confuesed me more. Something about scipts turning True or False, can someone please, make this simpler, because I'm just not getting it?

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...