PDA

View Full Version : Scripting: Give item according to alignment


Patriarch
11-11-2005, 07:40 AM
Howdy there

I'have tried using the 003_equip_visas script and succesfully modified it a bit, to make Visas use a custom robe(and removing the give lightsaberpart (Mesh of Alpheridies by myself....Will release it soon), however i would like to give her items based on alignment. Does anybody know how to do this? I've had a look at the nss source for crystals in KT and it seems to poll for alignment, but I'am a n00b so I'm not sure.

An aditional request would be if anybody knows how to put a Jedi robe in the metal box in Zez-kael's/Miras room in Naar Shadaarr( I could maybe just spawn a backpack ther if it's easier)

Finally i would like to know if it is possible to make handmaiden equip another custom robe rather than her mothers?

Thanks
Anders

Darth333
11-11-2005, 09:28 AM
Welcome to the forums :)

Howdy there
I'have tried using the 003_equip_visas script and succesfully modified it a bit, to make Visas use a custom robe(and removing the give lightsaberpart (Mesh of Alpheridies by myself....Will release it soon), however i would like to give her items based on alignment. Does anybody know how to do this? I've had a look at the nss source for crystals in KT and it seems to poll for alignment, but I'am a n00b so I'm not sure.


This script will give an item to your PC if DS and another itme if LS or Neutral.Just replace "my_item_resref" by the items you want to give to your pc and compile with k_inc_utility.nss



#include "k_inc_utility"

void main()
{
object oPC = GetFirstPC();

if(IsDark()==TRUE){
CreateItemOnObject("my_ds_item _resref",oPC);
}

else{
CreateItemOnObject("my_ls_item _resref",oPC);
}

}



An aditional request would be if anybody knows how to put a Jedi robe in the metal box in Zez-kael's/Miras room in Naar Shadaarr( I could maybe just spawn a backpack ther if it's easier)

You should find what you need in this tutorial: http://lucasforums.com/showthread.php?t=143536


Finally i would like to know if it is possible to make handmaiden equip another custom robe rather than her mothers?
You mean when you ask her to dress up in the Ebon Hawk after sparring with her? Yes, it's possible but I can't tell you exactly how right now as I don't have the game with me and I can't check which script is fired at that moment.

Patriarch
11-11-2005, 11:28 AM
THanks for the answer Darth333 Your the m.... ehr Woman!!!

I cleared up the part with giving another robe to handmaiden, it's just a matter of putting a *.UTI item in override with the same name as the original ie A_robe_x01....Works like a charm....The other question about alignment...did not test it yet but will do tonight, if i have time......I am actually trying to make an addition to the USM so that new jedi also can get a robe that reflects their history etc.......