After searching through these forums I read http://www.gamesas.com/topic/1349649-dynamically-attaching-scripts-to-actors-near-the-player/page__p__20348867__hl__scripts__fromsearch__1#entry20348867 thread on using Quest Aliases and thought I could use it for the problems I have been having with companions.
Right now the only way I can add a companion to a cart is by making a seperate script for every companion, and using a IsDongFavor function on the cart. But for some reason it was also activating the cart for the player, which looked bad and wasn't what I intended, also I wasn't sure how I was going to handle getting them off the cart
.After that thread I figure I should be able to do it with Aliases, but for some reason it isn't working. I have made the quest, with the following Match Conditions:
S | GetFactionRank | Faction: CurrentFolloweFaction | >= | 0.000 | ORS | GetFactionRank | Faction: CurrentHirlingFaction | >= | 0.000 | OR
I then have this script attached:
Spoiler
Scriptname Driveablecartcomp1 extends ReferenceAliasfunction AttachToCart(bool bDoAttach)if bDoAttach Closest.SetVehicle(DriveableCart1) Utility.Wait(0.1) Closest.PlayIdle(CompanionCartIdle)endifendfunctionObjectReference property DriveableCart1 AutoIdle property CompanionCartIdle AutoActor property Closest Auto
To my understanding, I should then be able to use a "CompanionCartQuest.Start()" in my script when I activate the cart, and then every NPC in the loaded area (I have that checked in ALias tab too) who meets the conditions of being above one of those afore mentioned ranks should play the script I provided.
Well, for some reason in won't work at all. Checking the debug messages shows a line in the script I use for the player (with the CompanionCartQuest.Start()) is "Assigning None to a non-object variable named "::temp6"" or mentioning no 3D object present. TO my knowledge this means that the QuestAliases are triggering, yet aren't finding a nearby actor to apply the script too? Lydia was standing next to me and I had her property assigned in the script within the Alias.
Is there a problem with the GetFactionRank condition? Is there something I am missing in the Alias itself? Any ideas at all what the problem is?
OP:
Hello,
I've been working on a mod to rebuild the Helgen area. In getting used to the new CK features I decided not to take anything seriously and intentially destroyed the game intro for kicks in my esp.
Out of curiosity I started a new game, and realized I could take control of the cart at the intro.
http://www.youtube.com/watch?v=X369WcykGBM&context=C3790db5ADOEgsToPDskLvvwvRx8W66Ajur4B8iyb0
This has inspired me to make a mod where the player can control the carriage, and even command companions to get in the back!



.
Really? Where would we download just a masterpiece, if it were for download or something?
Good luck on the mod.