Ruinel Posted September 24, 2014 Share Posted September 24, 2014 (edited) So I followed this tutorial on creating a creature companion mod. I plan on starting a new Oblivion character based off of my ESO alt, Agatha Cheddarbane. She was a sorcerer and always accompanied by her scamp, Freddie. But I've run into a couple problems/questions. First and most important, whenever I activate Freddie in the game the script will run and the message appears, but he won't follow. His summon spell works fine, too. This is the script I'm using (sorry about the lack of indentation): scn cmFreddieRevisedScript ref rEnemyshort doOnceref GetSelf ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; begin OnActivate if IsActionRef playerSetIgnoreFriendlyHits 1if doOnce == 0Player.addspell cmFreddieSpellset doOnce to 1endifif (GetSelf.GetForceSneak == 0) && (player.IsSneaking == 1)GetSelf.SetForceSneak 1 elseif (GetSelf.GetForceSneak == 1) && (player.IsSneaking == 0)GetSelf.SetForceSneak 0endifif FreddieFollow == 1set FreddieFollow to 0Message "'Freddie, you good for nothing Daedra! Time out!'"elseif FreddieFollow == 0set FreddieFollow to 1Message "'Alright, Freddie. Let's go. This place is too boring.'"endifEvaluatePackageplayGroup Idle 1 elseactivate endifend ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; begin OnStartCombat ;make sure not to attack friends after accidental hits. set rEnemy to getCombatTargetif GetShouldAttack rEnemy == 0 && Player.GetShouldAttack rEnemy == 0StopCombatStopCombatAlarmOnActorplayGroup Idle 1returnendif It may be important to note that I did in fact link the summon spell to a wedge of cheese before setting it to Freddie, but I have deleted it. Player faction, empty inventory, changed the spells so his attack was more powerful...And instead of writing everything down for the AI and making things confusing, if you could just review these pictures: If you need any more information, please let me know. I have a feeling that the problem may be about Freddie being a scamp, as someone who wanted to do this to minotaur is having the same problem. My next topic is a question. How do I make Freddie purple? I am a complete and total noob at this, so I'll need a lot of detail. I have the meshes and textures. Is there any certain way I have to have them organized? Note that the textures are not included in the .nif files and that they are separate, so when I pull up the head or body on NIFSkope it appears white. How do I get everything into one model that can be pulled up as a purple scamp on the construction set? Thanks for reading this, and thanks for helping out a newbie. Please be patient with me as I've only just begun to grasp this stuff. Do ask any questions you need. Edited September 24, 2014 by Ruinel Link to comment Share on other sites More sharing options...
zwkdiv Posted October 12, 2014 Share Posted October 12, 2014 (edited) I think the problem is that you created 2 global variables instead of just the one. The "FreddieWander" global should be deleted and the condition in the "FreddieWander" package should be.... no GetGlobalValue Global "FreddieFollow" == 0 The condition in the "cmFollowFreddie" package also needs setting to ..... no GetGlobalValue Global "FreddieFollow" == 1 Try these and let me know what happens. Edit........ Changing the scamps colour isn't too hard, but let's sort the lack of following out first. :smile: Edited October 12, 2014 by zwkdiv Link to comment Share on other sites More sharing options...
Ruinel Posted December 1, 2014 Author Share Posted December 1, 2014 (edited) I think the problem is that you created 2 global variables instead of just the one. The "FreddieWander" global should be deleted and the condition in the "FreddieWander" package should be.... no GetGlobalValue Global "FreddieFollow" == 0 The condition in the "cmFollowFreddie" package also needs setting to ..... no GetGlobalValue Global "FreddieFollow" == 1 Try these and let me know what happens. Edit........ Changing the scamps colour isn't too hard, but let's sort the lack of following out first. :smile: I know it's been...months? since I posted this and you answered, but thank you so much! Yes, I think you're right about that. I make the stupidest mistakes! -_- Anyway I'm working on fixing that now, I'll tell you what happens. Edited December 1, 2014 by Ruinel Link to comment Share on other sites More sharing options...
Ruinel Posted December 1, 2014 Author Share Posted December 1, 2014 Yes, it worked! Again, thank you so much! Link to comment Share on other sites More sharing options...
zwkdiv Posted December 23, 2014 Share Posted December 23, 2014 You're welcome. :thumbsup: I'm glad that it worked.Sorry for the delay in replying but RL has kept me busy and away from here for a little while. Link to comment Share on other sites More sharing options...
Recommended Posts