lfnetwork.com mark read register faq members calendar

Thread: Wanting to write a particular script-need help!!!
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 11-19-2004, 05:43 PM   #1
Forceboat
 
Join Date: May 2003
Posts: 277
Wanting to write a particular script-need help!!!

I want to write a particular script to use for a few single player maps, to give my Kyle replacement characters a different weapon. Right now, they load up with the player having a Bryar Pistol. I want to change that by writing a script that has the level start up with a lightsaber. Please! I need help! What are the variables that I need to write for this script so it does this? Please, help!
Forceboat is offline   you may: quote & reply,
Old 11-20-2004, 12:37 AM   #2
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,171
The default setting for maps is to have the player spawn with the lightsaber. All you have to do to revert to that is to remove the icarus stripting that changes a weapon settings on the player.

Refer to the icarus documentation found in the SDK.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 11-20-2004, 02:36 AM   #3
Forceboat
 
Join Date: May 2003
Posts: 277
Okay, thanks, I'll try that.
Forceboat is offline   you may: quote & reply,
Old 11-20-2004, 03:47 AM   #4
Forceboat
 
Join Date: May 2003
Posts: 277
razorace,

I'm sorry, but I still don't get it. Okay, you said change something in the script so that "Kyle" starts with the saber. Well, it must be an entity thing in the map itself, because it is an addon map I downloaded, and it had no scripts; it starts out with the player having only the Bryar Pistol- hence my wanting to write myself a script so I can change that to him starting with the saber instead. Here's what I wrote in it. Tell me what I missed so that it will work. Here's the text version of it before I converted it to IBI:

//Generated by BehavEd

rem ( "comment" );

affect ( "kyle", /*@AFFECT_TYPE*/ FLUSH )
{
set ( "WEAPON", "WP_SABER" );
}
Forceboat is offline   you may: quote & reply,
Old 11-20-2004, 07:31 AM   #5
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,171
It has to be an ICARUS script. It's not possible any other way according to the source code. My guess is that the file is just in compiled form in the map's .pk3.

Secondly, it should be "player" instead of "kyle".

Finally, you gotta have this new script replace the current scripted used to replace the weapons (which is triggered on player spawn). My guess is that it's going to be in the scripts directory of the pk3 and probably be called something like playerspawn.ibi.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace 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 > JediKnight Series > Editing Central > General Editing > Wanting to write a particular script-need help!!!

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 09:38 PM.

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