Jump to content

Photo

Working with race conversion and graphics

werewolf effects character race newbie

  • Please log in to reply
2 replies to this topic

#1
pdmoerman

pdmoerman

    Stranger

  • Members
  • Pip
  • 8 posts

I'm working on the same mod, which is creating a new playable race. The race is based on a Nord, but to go into combat, the player uses a power which transforms them into a beast.

The magic effect worked when I tested it, with one problem. After the effect is active, I couldn't open the character menu (to be able to equip a dispel power for example), and the actual graphics didn't change. The damage went up a bit as it was supposed to, which means the race changed in terms of back end stuff, but I want to be able to open the menu and see that the form actually changed.

I used a Werewolf magic effect, but I didn't mark the transform-into races playable, just the base one. (I only want the Nord based race to be able to be selected in Helgen, not the transformations.) How do I fix this? With scripting, or is there an easier way? I've been using the actual Werewolf race as a guideline, but I'm not sure where I went wrong.

 

Thanks for any help!



#2
pdmoerman

pdmoerman

    Stranger

  • Members
  • Pip
  • 8 posts

I found this site that shows how to set up the camera for the race (which I think was part of the issue), but when I tested it, it didn't work. I tested on the wolf skeleton, and the camera was still between the legs at ground level. Any suggestions?

 

http://hubpages.com/...sters-In-Skyrim



#3
pdmoerman

pdmoerman

    Stranger

  • Members
  • Pip
  • 8 posts

I looked around some more and came up with the following, however, the compiler is tripping up on the Race associated functions and the ActiveMagicEffect declaration. I was trying to get the spell caster in case I add an NPC of this race, so it doesn't transform the player when the NPC uses the power. Anybody? Thanks.

Scriptname PM_WolfFormChangeScript extends ObjectReference

Actor Property spellCaster auto
bool Property casterIsPlayer auto
Race Property wolfForm auto

Event OnSpellCast(Form PM_HBWolfFormLesserPower)
	ActiveMagicEffect wolfFormMagicEffect = PM_HBWolfFormChangeEffect
	wolfForm = Race.GetRace("PM_HBWolfFormRace")
	spellCaster = wolfFormMagicEffect.GetCasterActor()
	
	If spellCaster == Game.GetPlayer()
		casterIsPlayer = True
	Else
		casterIsPlayer = False
	EndIf
	
	changeRace(spellCaster, wolfForm, casterIsPlayer)
EndEvent

Function changeRace(Actor target, Race targetRace, bool isPlayable)
	If target.GetRace() != targetRace
		If isPlayable
			targetRace.MakePlayable()
		Else
			targetRace.MakeUnPlayable()
		EndIf
		
		target.SetRace(targetRace)
	EndIf

EndFunction






Also tagged with one or more of these keywords: werewolf effects, character race, newbie

Page loaded in: 1.165 seconds