ragnarok1540 Posted October 3, 2005 Share Posted October 3, 2005 If I want to make Atton a Consular instead of a Sentinel, would this code change in a_makejedi.nss work? // If Param = 0, then it's Atton. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 0 ) { AddMultiClass (CLASS_TYPE_JEDICONSULAR, GetObjectByTag ("Atton") ); } Also, I want to make Visas and Kreia automatically become a Jedi Watchman and Jedi Master upon reaching level 15 wthout any dialog change. I read in another post that user: stoffe -mkb- made visas into a watchman using the code below. Would this code be placed in the a_makejedi.nss file as well, and for Kreia would I just change Visas to Kreia and CLASS_TYPE_JEDIWATCHMAN to CLASS_TYPE_JEDIMASTER ? object oVisas = GetObjectByTag(GetNPCTag(NPC_VISAS)); if (GetIsObjectValid(oVisas) && (GetHitDice(oVisas) > 14) && (GetClassByPosition(2, oVisas) == CLASS_TYPE_INVALID )) { AddMultiClass( CLASS_TYPE_JEDIWATCHMAN, oVisas ); } Thank you Link to comment Share on other sites More sharing options...
mrdefender Posted October 3, 2005 Share Posted October 3, 2005 If I want to make Atton a Consular instead of a Sentinel, would this code change in a_makejedi.nss work? // If Param = 0, then it's Atton. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 0 ) { AddMultiClass (CLASS_TYPE_JEDICONSULAR, GetObjectByTag ("Atton") ); } That should work, but I'm afraid I don't know much about the second one... Link to comment Share on other sites More sharing options...
stoffe Posted October 3, 2005 Share Posted October 3, 2005 Also, I want to make Visas and Kreia automatically become a Jedi Watchman and Jedi Master upon reaching level 15 wthout any dialog change. If you want them to automatically multiclass when they reach level 15 without any action from the player, the easiest way is probably to alter their user-defined heartbeat script to check their current xp, level and that they haven't already multiclassed. The scripts involved in this is the k_oei_hench_inc include file and the k_oei_spawn and k_oei_userdef scripts. In k_oei_hench_inc, activate the custom heartbeat if it isn't already on in the DoVisasMarrSpawnIn() and DoKreiaSpawnIn() functions. Then add the levelup multiclass code in the DoVisasMarrUserDef() and DoKreiaUserDef() functions. Here is an example of a modified k_oei_hench_inc.nss include script that should make Visas automatically multiclass to Watchman upon reaching level 15. If you want to try it, remember to compile k_oei_spawn.nss and k_oei_userdef.ns using this include file. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.