lfnetwork.com mark read register faq members calendar

Thread: Remove from Inventory
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 06-18-2012, 03:04 AM   #1
darthbdaman
Rookie
 
darthbdaman's Avatar
 
Join Date: Apr 2010
Location: Hoth
Posts: 31
Current Game: TSLRCM
Remove from Inventory

I have been trying to remove the Blue Lightsaber from the inventory. The have no scripting ability, and the scripts I have used compile, but crash the game when they trigger. I have looked at various tutorials and tried multiple different methods, but they all seem to crash the game. I am triggering the script when Trask runs off to fight Bandon at the end of "end_cut01.dlg". Can anyone show me a script that works, or tell me why the game would crash when the script compiles?


█∭⊤ị▩ị⊤≣(Φ)█Ξ██████████████████████)
"No game of dejarik can be won without pawns, and this may prove to be a very long game."

Deadly Stream Profile

My Mods:
Jedi from the Start
darthbdaman is offline   you may: quote & reply,
Old 06-18-2012, 05:42 AM   #2
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,288
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Here, this should work. It compiles all fine, though having never used this function, nor tried this out in-game I don't know if it works or not. But it should...

Code:
void main()
{

object oPC = GetFirstPC();

object oLightsaber = GetObjectByTag("g_w_lghtsbr01");

ActionTakeItem(oLightsaber, oPC);

}


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,
Old 06-18-2012, 06:05 PM   #3
darthbdaman
Rookie
 
darthbdaman's Avatar
 
Join Date: Apr 2010
Location: Hoth
Posts: 31
Current Game: TSLRCM
Thanks. I will try it.


█∭⊤ị▩ị⊤≣(Φ)█Ξ██████████████████████)
"No game of dejarik can be won without pawns, and this may prove to be a very long game."

Deadly Stream Profile

My Mods:
Jedi from the Start
darthbdaman 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 > Remove from Inventory

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 05:10 AM.

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