Aliases Help

Post » Tue Apr 02, 2013 12:59 am

Sorry for tons of questions and for my bad english...

I Just realy try to understant scripting and this forum is the best what i found in internet...

So, here is another question.

I have some code what looks like this:

Function EnabedShip()If (aRavenRockShip.IsEnabled())ActiveShip = aRavenRockShipElseIF (aSkaalVilageShip.IsEnabled())ActiveShip = aSkaalVilageShipElseIf (aTelMitrinShip.IsEnabled())ActiveShip = aTelMitrinShipendifEndFunction

How can i do the same with alias. I just need to write current running alias in reference.
I have a dialogues what forceref some NPC into Alias. When I change NPC location from RiverWood to Whiterun (It just for example, it could be any town in Skyrim), my NPC need to ForceRef into other Alias and previus alias should be disabled.

Ofcourse i can write somethinf like this:

PettyAiPackageDanstarTawern.Clear()PettyAiPackageFalkreathTavern.Clear()PettyAiPackageHighSkyCabin.clear()PettyAiPackageMarkarthTawern.Clear()PettyAiPackageMorthalTavern.Clear()PettyAiPackageRiftenTavern.Clear()PettyAiPackageRiverwooDTavern.clear()PettyAiPackageSolitudeTawern.Clear()PettyAiPackageWhiterunTavern.Clear()PettyAiPackageWindhelmTavern.Clear()PettyAiPackageWinterHoldTavernSir.Clear()

But it would be better to remember last alias in reference and disable only it.

Thank you for any response.
User avatar
Cash n Class
 
Posts: 3430
Joined: Wed Jun 28, 2006 10:01 am

Return to V - Skyrim