Manipulating properties from other scripts

Post » Mon Apr 13, 2015 4:21 pm

Hey guys, I'm really starting to pull my hair out over this one. I have two properties declared within a quest script that I want assigned values.
Scriptname BossyQuest extends Quest ConditionalActor Property boss_ref autoActor Property player_ref auto
So these two properties correspond to quest aliases of the same names under the same quest the script is attached to. At first I thought those aliases' values might get automatically populated into these properties. That obviously isn't the case. I thought about using the GetAlias() function, but that only returns an Alias, not the actual value that has been assigned to the alias (actors in this case). I looked up the wiki page on how to access properties and tried with that in two methods. In the first method I assigned a script to the boss_ref quest alias:
Scriptname BossyBoss_Ref extends ReferenceAlias  BossyQuest property quest_ref autoEvent OnInit()	quest_ref.boss_ref = GetActorReference()EndEvent
I also included a Debug.MessageBox in the quest script to print out the boss_ref's actor base's name to test if boss_ref was being assigned correctly. When I ran my cell, however, the message box was blank. I tried the same method by assigning a script to the actual boss actor:
Scriptname BossyInterface extends ActorBossyQuest property quest_ref autoEvent OnInit()	quest_ref.boss_ref = selfendEvent
But this didn't work either. I have to imagine altering these values is fairly common practice. What am I doing wrong!?

thanks,
Nathan
User avatar
FirDaus LOVe farhana
 
Posts: 3369
Joined: Thu Sep 13, 2007 3:42 am

Return to V - Skyrim