Jump to content

Search the Community

Showing results for tags 'edit party'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Kotor Modding
    • Mod Releases
    • General Kotor/TSL Modding
    • Modding Tools
    • Work In Progress
    • Tutorials
    • Game Saves
  • Mod Projects
    • TSLRCM
    • M4-78 Enhancement Project
    • KotOR1 Restoration (K1R)
    • Revenge of Revan
    • KotOR Toolset
  • Jedi Knight Series
    • General Discussion
    • Mod Releases
  • Other Games
    • Other Games
    • Dantooine Theater Company
  • General
    • News
    • Knights of the Old Republic General
    • Star Wars
    • The Old Republic
    • Site Feedback
    • General Discussion

Blogs

  • Blog 1
  • The memories of Mandalore
  • Blog 63
  • Varsity Puppet's Brain Dump
  • Working Class Hero's Blog
  • mmidnight's Blog
  • Blog-Tastika
  • Darth Malious' Blog
  • The Beta Community's Voice
  • sallyrit's Blog
  • Sith Holocron's Blog
  • Diablo3gold
  • Marginalia
  • Mindwizard's Blog
  • Journal Log Of Penally's Bounties
  • Mudslinger077's Blog
  • starwars1234's Blog
  • Blaaargh.2da
  • Kate The Bionic Uterus' Vibrating Submarine
  • Darth Nuge's Blog
  • The Xuul Report
  • KOTOR Fan Theories
  • Benny Chan style
  • Darth_Sapiens' Blog
  • Neville's Blog
  • Darth_Sapiens' Blog
  • TimmyDean's Blog
  • Malkior's Blog
  • DarthSidious4.2's Blog
  • Darth Pravus' Blog
  • Help
  • Canderis' Blog
  • The Musings of Eauxps
  • xander2077's Blog
  • DeadMan's chest
  • pepoluan Far Far Away
  • Rece's Videos
  • jc2's Journal
  • Kexikus' Blog
  • Kreia's Blog
  • Fair Strides' Blog
  • Pazuzu156's Blog
  • GoldLeader's Blog
  • Steira Shipyards
  • lyuscherbakova1986's Blog
  • superSzym's Blog
  • Leilukin's Blog
  • N-DReW's Datapad
  • magdahalo's Blog
  • Trouble Successfully Using Kotor II TSLRCM 1.8.5 On Windows 7 x64-Bit Laptop
  • DarthTyren's Blog
  • The Holocron of Darth Kyber
  • Darth Varkor's KOTOR Machinima Saga: Production Blog
  • ADG12311990's Blog
  • Unusual's VA Blog
  • Draconian's TSL mod request.
  • darthbdaman's Holocron
  • JC's Blog
  • L0ki's Blog of questions & brief WIP things
  • The Iriaz Archives
  • Breakfast With eb
  • Cathar Handmaiden Skin?
  • Kast's Datapad
  • Having fun with the KotOR maps.
  • AndroidKotOR Modded
  • Starıka's Jedi Academy Machinimas
  • KotOR II Damage Calculator
  • Help Modding
  • A step-by-step guide for widescreen in Star Wars: Knights of the Old Republic
  • 13 gigabytes, 13 brain cells
  • Modding Tools
  • StellarExile Mod Stuff
  • Jedi Knight: Jedi Academy films by Cor
  • Something of a moment of truth
  • Music for Streams
  • LoneWanderer's blog
  • modder 9's blog
  • Community Requests
  • Kotor combined saga blog
  • My Kotor Machinimas
  • How do you stream with your Widescreen fixes?
  • Looking for advice to solve a challenging bug: Eastern Dune Sea is resetting every time upon entering

Categories

  • Knights of The Old Republic
    • Media
    • Mods
    • Skins
    • Modder's Resources
  • The Sith Lords
    • Media
    • Mods
    • Skins
    • Modder's Resources
  • Jedi Knight Series
    • Maps
    • Mods
    • Skins
    • Other
  • Game Saves
  • Other Games
  • Modding Tools

Product Groups

  • Premium Membership
  • Modders Account

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. This tutorial is to help someone out when they ever have to use this feature, especially since it took me a while to figure it out myself. I'm going to show you how to store and restore your current party any time you want in either game. An example from KotOR 1 where this is done is when you are at the Hrakert Station on Manaan and you travel through the airlock and back. You lose your party when you go out, but the people are restored to your party instantly when you go back inside. Similarly in KotOR 2, You can pick your party members at various points. The most notable is picking a team to go to Freedon Nadd's Tomb on Duxn. The game does the same thing here as it does on Manaan: programmatically adding people to your party. (All examples assume it's just you in the party before running them) The code for it is actually very simple. Say you wanted to add Bastila to the party : object oBastila = SpawnAvailableNPC(NPC_BASTILA, GetLocation(GetFirstPC())); AddPartyMember(NPC_BASTILA, oBastila); That seems simple now, but it took me the longest time to figure out that the number at the beginning of AddPartyMember was the NPC's place in the party table. On the Leviathan, I was just working with Bastila and Carth, so 0 and 2 still worked for party member slots (despite the fact that the PC should be in the 0 spot) and I didn't realize the number's meaning. Similarly if you wanted to add Juhani or Kreia, you'd use NPC_JUHANI or NPC_KREIA. But what if you didn't know who to summon? Investigating the Manaan airlocks and the Duxn Tomb's levels, I found that the NPCs' numbers are stored in Global Numbers. These numbers are then retrieved and used in the code above. Here's the code for the Duxn Tomb's OnEnter script: void sub3() { object object1 = SpawnAvailableNPC(GetGlobalNumber("403DXN_PARTY2_NPC2"), GetLocation(GetObjectByTag("sp_cnpc2", 0))); object object4 = SpawnAvailableNPC(GetGlobalNumber("403DXN_PARTY2_NPC3"), GetLocation(GetObjectByTag("sp_cnpc3", 0))); AddPartyMember(GetGlobalNumber("403DXN_PARTY2_NPC2"), object1); AddPartyMember(GetGlobalNumber("403DXN_PARTY2_NPC3"), object4); } In KotOR 1, there are two Global Numbers that you can use freely: "K_PARTY_STORE1" and "K_PARTY_STORE2". If you want to see if those have been used, the game (and you) should check and use the Global Boolean "K_PARTY_STORED". In KotOR 2, Those globals aren't available, so you can either make your own or you'd have to re-purpose the Duxn ones. Re-using the Duxn ones should be safe, since using them before Duxn will have them reset and using them after Duxn shouldn't be a problem.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.