lfnetwork.com mark read register faq members calendar

Thread: SP mod 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 06-30-2010, 08:38 PM   #1
I_Jedi
Rookie
 
Join Date: Mar 2009
Posts: 16
Question SP mod help

This will likely be an easy question, but I don't know how to do it:

How do I change the player's force powers in SP in a custom mod and map?

I tried to use the set command in BehavEd, but it seems impossible to add any kind of force powers, because all force powers are immediately set to 0 when I start my mod via .bat. My failed attempts used the "SET_FORCE_[forcepower]_LEVEL" parameter.

Thanks if you answer this question.
I_Jedi is offline   you may: quote & reply,
Old 07-01-2010, 05:51 AM   #2
New_New_New
Lurker
 
New_New_New's Avatar
 
Join Date: Jan 2009
Posts: 8
Well, I always do it this way:
- put an info_payer_start into new map
- target info_player_start to target_scriptrunner
- set in target_scriptrunner key usescript with value script_folder/name_of _the_start_script (for example new_scripts/start_level)
- compile map
- open BehavEd and write such script (for example):

//Generated by BehavEd

rem ( "script run at start of level" );
rem ( "set up force powers and weapons" );

affect ( "player", /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_FORCE_ABSORB_LEVEL", /*@FORCE_LEVELS*/ "1" );
set ( /*@SET_TYPES*/ "SET_FORCE_DRAIN_LEVEL", /*@FORCE_LEVELS*/ "1" );
set ( /*@SET_TYPES*/ "SET_FORCE_GRIP_LEVEL", /*@FORCE_LEVELS*/ "1" );
set ( /*@SET_TYPES*/ "SET_FORCE_HEAL_LEVEL", /*@FORCE_LEVELS*/ "2" );
set ( /*@SET_TYPES*/ "SET_FORCE_JUMP_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_LIGHTNING_LEVEL", /*@FORCE_LEVELS*/ "2" );
set ( /*@SET_TYPES*/ "SET_FORCE_MINDTRICK_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_PROTECT_LEVEL", /*@FORCE_LEVELS*/ "1" );
set ( /*@SET_TYPES*/ "SET_FORCE_PROTECT_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_PULL_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_PUSH_LEVEL", /*@FORCE_LEVELS*/ "1" );
set ( /*@SET_TYPES*/ "SET_FORCE_RAGE_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_SIGHT_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_FORCE_SPEED_LEVEL", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_SABER_DEFENSE", /*@FORCE_LEVELS*/ "3" );
set ( /*@SET_TYPES*/ "SET_SABER_OFFENSE", /*@SABER_STYLES*/ "3" );
set ( /*@SET_TYPES*/ "SET_SABER_THROW", /*@FORCE_LEVELS*/ "2" );
}

- name it (for example level_start)
- compile it and put in script folder (for example new_scripts)
- put all new files into .pk3 (of course new map must be in maps folder in that pack and new_scripts folder must be in scripts folder (as in assets packs)) and put a new .pk3 into "base" directory
- to run my map I use command devmap or change newgame.ui (and newgame_first.ui) to run my map when start a new game...
And it always works fine. So I don't know, may be there is some problem in your .bat file?
P.S. Sorry for my English...
New_New_New is offline   you may: quote & reply,
Old 07-01-2010, 02:12 PM   #3
I_Jedi
Rookie
 
Join Date: Mar 2009
Posts: 16
Thanks! It seems that the problem was that I had a trigger brush around the info_player_start and used that. I didn't use the info_player start itself.
I_Jedi 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 > JA Mapping > SP mod 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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:49 PM.

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