Need help on changing a script

Post » Thu Dec 16, 2010 1:48 am

Well basically I wanted to add a short script onto a piece of armor so that it would disguise me like the Gray Fox Cowl but even after reading some tutorials on scripting I still don′t understand
what I need to put to get whatever to happen so I just pretty much copied everything from TGGrayCowlScript into a new script only thing is I don′t know what I need to add or take away so that everytime I put on
my disguise piece I won′t get a automatic 500 bounty and that when I put on and then take off the disguise my bounty doesnt magically go to 0.

Thanks in advance
User avatar
Alisha Clarke
 
Posts: 3461
Joined: Tue Jan 16, 2007 2:53 am

Post » Thu Dec 16, 2010 7:15 am

I believe this should do what you are wanting. when equipped it pretty much gives you an alternate personality by setting your crime gold to 0 instead of the 500 (of the original GF script), although no one recognizes you as the greyfox when you talk to them. Testing in-game results in being able to talk to the guard just fine, proceeding to punch the guard while equipped, then taking it off to resume your old crime gold (and with a yield, talk to the guard as normal(not including the corrupt Amantius as he accepts no yield)).
Scn TGGrayCowlScript2Float GFCrimeGoldFloat GFInfamyFloat GFFameFloat PCCrimeGoldFloat PlayerInfamyFloat PlayerFameshort TempCrime  == 0 Begin OnEquip Player	If GetPlayerInSEWorld == 0		If GFCrimeGold > TempCrime	 		Set GFCrimeGold to TempCrime		EndIf		Set PCCrimeGold to Player.GetCrimeGold		Player.SetCrimeGold GFCrimeGold		EndIf	Set PlayerFame to GetPCFame	SetPCFame GFFame	If GFInfamy < 100		Set GFInfamy to 100	EndIf	Set PlayerInfamy to GetPCInfamy	SetPCInfamy GFInfamyEndBegin OnUnequip Player	If GetPlayerInSEWorld == 0		Set GFCrimeGold to Player.GetCrimeGold		Player.SetCrimeGold PCCrimeGold	EndIf	Set GFFame to GetPCFame	SetPCFame PlayerFame	Set GFInfamy to GetPCInfamy	SetPCInfamy PlayerInfamyEndBegin GameMode	If GetPlayerInSEWorld == 0		If SECrime.LeftSECowlOn == 1			If SECrime.EnteredSECowlOn == 0				If GFCrimeGold > TempCrime	 				Set GFCrimeGold to TempCrime				EndIf				Set PCCrimeGold to Player.GetCrimeGold				Player.SetCrimeGold GFCrimeGold					Set SECrime.LeftSECowlOn to 0			EndIf		EndIf		If SECrime.LeftSECowlOn == 0			If SECrime.EnteredSECowlOn == 1				Set GFCrimeGold to Player.GetCrimeGold				Player.SetCrimeGold PCCrimeGold				Set SECrime.EnteredSECowlOn to 0			EndIf		EndIf	EndIfEnd

Also to get the same effects such as the feather and detect life, you will have to put the Enchantment "TGGrayCowlEnchanment" on it as well.

*EDIT* Fixed a couple spelling/grammatical errors.
User avatar
Wane Peters
 
Posts: 3359
Joined: Tue Jul 31, 2007 9:34 pm


Return to IV - Oblivion