lfnetwork.com mark read register faq members calendar

Thread: TSL-Creating "Witcher"-Style Books
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-20-2010, 09:40 PM   #1
e-varmint
Vapid Pomposticator
 
e-varmint's Avatar
 
Join Date: Jul 2007
Location: Abandoned Subway Car
Posts: 760
Current Game: Dragon Age
Helpful! 
TSL-Creating "Witcher"-Style Books

This is how I create "books" that give spells/feats/experience, similar to those in The Witcher computer game.

Screenie:
Show spoiler


1) Use the KOTOR Tool to extract plc_datapad .utp from Kotor II-Templates.bif-Blueprint, Placeables

2) Rename it to something else. Under the Basic tab, change the Name to the name of your "book". Change the Tag (Basic tab) and Template ResRef (Advanced tab).

I *always* use the exact same name for the .utp, Tag, and Template ResRef.

Also under the Advanced tab, select "Usable". Under the Scripts tab, in the OnUsed field, enter the name of the script that will fire your conversation (without the .ncs extension). Example: ev_dlg001.

Example script, where ev_givewpnmstr is the name of the .dlg file:
Code:
void main() 
{
     
ActionStartConversation(GetFirstPC(), "ev_givewpnmstr", 0, 0, 0, "", "", "", "", "", "", 0);

}
3) Create a dialog, then attach a script to one of the lines that gives the player some spell, feat, or other bonus.

Example Script:
Code:
void main() 
{

  AddMultiClass(CLASS_TYPE_JEDIWEAPONMASTER, GetFirstPC());
  AddBonusForcePoints( GetFirstPC(), 100 );


}
4) Place your "book" where it will be easily found. I like to use door "OnOpen" fields to fire a script like this, where ev_givewpnmstr is the "object template" of your new .utp:
Code:
void main() 
{
    vector vPosition=Vector(-1.52743, -4.13317, 9.09430);
    location lSpawn=Location(vPosition,0.0);
  CreateObject( OBJECT_TYPE_PLACEABLE, "ev_givewpnmstr", lSpawn);

}
The Vector coordinates are (in this order) X, Y, and Z coordinates that I obtained with Darth333's ingenious Whereami Armband.

Thanks to TK102 and this thread for scripting syntax that made it possible for me to figure out how to do this:
http://www.lucasforums.com/showthread.php?t=143412
e-varmint is offline   you may: quote & reply,
Old 08-20-2010, 09:58 PM   #2
Rtas Vadum
Behold The Envoy...
 
Rtas Vadum's Avatar
 
Join Date: Nov 2008
Posts: 744
Current Game: TES 4: Oblivion/3: Morrowind
Helpful! 
Added to Tutorial section.

Rtas Vadum is offline   you may: quote & reply,
Old 08-20-2010, 10:08 PM   #3
e-varmint
Vapid Pomposticator
 
e-varmint's Avatar
 
Join Date: Jul 2007
Location: Abandoned Subway Car
Posts: 760
Current Game: Dragon Age
Helpful! 
Quote:
Originally Posted by Rtas Vadum View Post
Added to Tutorial section.
Wow, you have magical forum powers! Thanks!!!
e-varmint is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > TSL-Creating "Witcher"-Style Books

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:24 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.