Jump to content

Creature Companion Help


BadPrenup

Recommended Posts

Hello

 

Alright, I have been working on a Frost Atronach Companion mod and have just about all of it sorted out. There are a few things I need help on though. I set him up as the player's property so he doesn't attack the player. I have also set up a follow and wait package for him, as well as a Menu that allows access to various things. Here are some things that do not work yet:

 

1. He lives under constant attack - Well kinda, I took him with me to the IC Waterfront and everyone ignored him completely, that is until the pretentious jerk Hieronymus Lex and another guard saw that he was there. Then all hell broke loose. All the locals joined in attacking my poor buddy. I mean they were screwed from the beginning because he has 280 HP and is an Essential character. Outside of cities he is fine, he even got the jump on a couple of rats so I wouldn't have to deal with them. Any way to fix this? I have seen lots of mods with wolves and other creature pets, so it must be possible. (Upon further testing, it appears as the Frost Atronach attacks first. He was attacking someone behind me so the NPC behind me might have initiated combat.)

 

2. Inventory troubles - I want to be ably to access his inventory, but want that to be included in my mod. Of course I can't just wait for him to become unconscious like you can Shadowmere, regardless of the fact that it would work. Is there a simple script I can use to access it's inventory?

 

3. Name Issues - I want the player to be able to name/rename the Atronach. Well this is just a little menu problem, I'll put a script dump of the menu below (For clarity, I have put three dashes at the beginning of the lines that have to do with naming.):

 

scn AAPetScript1

Short Working
Short Choosing
Short Choice
Short X



Begin OnActivate
Set Working to 1
Set Choosing to -1
End


Begin GameMode
If Working
	Set Working to 1

		If (Choosing == 0);shouldn't be running
			Set Working to 0


		ElseIf (Choosing == -1);menu
			MessageBox "Your Pet Atronach awaits your orders.", "Rename", "Follow", "Wait", "Access Inventory", "Nothing"
			Set Choosing to 1
			Set Choice to -1
		ElseIf (Choosing == 1)
			If (Choice == -1);no choice
				Set Choice to GetButtonPressed
---				ElseIf (Choice == 0);Rename
---					Set Choosing to -11;Opens Rename Menu
			ElseIf (Choice == 1);Follow
				StopWaiting AAPetFollowPack
				Set AAPetQuest.AAPetFollow to 1
			ElseIf (Choice == 2);Wait
				Wait AAPetFollowPack
				Set AAPetQuest.AAPetFollow to 0
			ElseIf (Choice == 3);Inventory
				Player.Activate AAPetContainer
			ElseIf (Choice == 4);Nothing
				Set Choosing to 0;closes menu
		ElseIf (Choosing == -11)
---				MessageBox "What do you want to rename him?", "Frosty", "Snowball", "Slushers", "The Blizzard King", "Avalanche", "No Name", "Go Back"
---				Set Choosing to 11
---				Set Choice to -1
---			ElseIf (Choosing == 11)
---				If (Choice == -1)
---					Set Choice to GetButtonPressed
---				Elseif (Choice == 0)
---					AAFrosty.SetActorFullName "Frosty"
---					Message "Your Frost Atronach's name is now Frosty"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 1)
---					AAFrosty.SetActorFullName "Snowball"
---					Message "Your Frost Atronach's name is now Snowball"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 2)
---					AAFrosty.SetActorFullName "Slushers"
---					Message "Your Frost Atronach's name is now Slushers"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 3)
---					AAFrosty.SetActorFullName "The Blizzard King"
---					Message "Your Frost Atronach's name is now The Blizzard King"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 4)
---					AAFrosty.SetActorFullName "Avalanche"
---					Message "Your Frost Atronach's name is now Avalanche"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 5)
---					AAFrosty.SetActorFullName "Pet Frost Atronach"
---					Message "Your Frost Atronach's name is now Pet Frost Atronach"
---					Set Choosing to -1
---					Set Choice to -1
---				Elseif (Choice == 6)
---					Set Choosing to -1
---					Set Choice to -1
---				EndIf
		EndIf
	EndIf
EndIf
End

 

This is strictly for immersion purposes, as well as the fact that I have a few meshes for the Frost Atronach from other mods like MMM and Midas' Spells and once I get their permission I'm going to edit this for more variety. Heck, I'll probably be making a companion for each atronach once I get this sorted out. If anyone has an answer on how to fix any of these problems I'll be sure to give credit in the final release. Thanks in advance.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...