Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

help with restrictions to powers and features

Page: 1 of 1
 jinger
12-09-2005, 2:04 AM
#1
how do i do that? i want to prevent a single npc from gaining certain pows/feats at level-up, just like Kreia can't have two-weapon fighting or a gray jedi master can't use inspire followers
 oldflash
12-09-2005, 3:08 AM
#2
Kreia with 2 handed weapons is done.
http://www.pcgamemods.com/core/15621/screenshots/b4.jpg)
It's all about changing 2 fields in appearance.2da:
rows 600 and 627 (kreia) in columns "equipslotlocked" put ****
About forcepowers... I don't know.
 JediKnight707
12-09-2005, 3:12 AM
#3
I think he's trying to do the opposite
 jinger
12-09-2005, 6:10 AM
#4
I think he's trying to do the opposite
that's right, i already know how to give anything to anyone :) now i'd like to understand how to make restrictions to features and powers.
thanks for replying anyway
 stoffe
12-09-2005, 6:43 AM
#5
how do i do that? i want to prevent a single npc from gaining certain pows/feats at level-up, just like Kreia can't have two-weapon fighting or a gray jedi master can't use inspire followers

Feats: In feat.2da, set the value in the column for that specific NPC (the column named as their tag) to 255. The value in this column is the level at which the feat becomes available to them. This will ensure they never get that feat.

Equipment slots: Change the equipslotslocked column in appearance.2da for the appearance type of the NPC. The value here is a sum of values for the equipment slots the player won't be able to change the contents of. The values, as far as I know, are:
Head (1)
Body (2)
Unknown (4)
Hands (8)
Right Weapon (16)
Left Weapon (32)
Unknown (64)
Left forearm (128)
Right forearm (256)
Implant (512)
Belt (1024)

Force powers: This is trickier. The behavior of the Inspire Followers and Crush Opposition force powers (becoming unavailable due to alignment) is hardcoded in the game as far as I can tell. At least I haven't been able to find any editable mechanism that controls this.

Thus, the best you can do is probably a pair of workarounds:

Denying use depending on alignment: You'd have to edit the impact script of the force power in question to prevent it from working when the character's alignment isn't within the allowed range. You can use the GetGoodEvilValue() function in a conditional check to determine this (0 = full dark, 100 = full light). This will not prevent the character from using the power though, it'll only prevent it from working. If you want to be nice you can "re-fund" their spent force points in the script if the power didn't take effect.
Preventing from picking at levelup: The only way I can think of is to create a passive "dummy" power (with the usertype column in spells.2da not set to 1 to prevent it from showing up in the list) that is a prerequisite for the force power that is to be restricted, and then grant that prerequisite power (either through script or by editing UTC templates) to all characters except the one who shouldn't get to pick the power at levelup.
 jinger
12-09-2005, 3:04 PM
#6
great stoffe :) i'll try that
Page: 1 of 1