Jump to content

Problem with ReferenceAlias for Text Replacement


rex929

Recommended Posts

I'm trying to do something similar to https://forums.nexusmods.com/index.php?/topic/6637076-text-replacement-books-and-quest-allias/ but I'm definitely missing something because I can't get the alias to fill correctly.

I'm trying to show a message using spell target's name in it when you cast the spell.

In the Message I'm using <Alias=TargetAlias> and within the Magic Effect script I'm using:

ReferenceAlias Property TargetAlias auto

Message Property TargetMessage auto

 

Event OnEffectStart(Actor akTarget, Actor akCaster)
TargetAlias.ForceRefTo(akTarget)

TargetMessage.Show()

EndEvent


I've tried messing with dropdowns and checkboxes in the Reference Alias tab, but I feel like I'm missing something fundamental here.
Update: I put in Debug.MessageBox(TargetAlias.GetRef()) after the ForceRefTo to see if it was working...and it seems to be filling correctly. So my actual problem is that for whatever reason the text replacement doesn't want to work.
Update2: I had to create a new game....everything was fine as written/configured. -_-
I'll leave this here for anyone trying to do something similar
Edited by rex929
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...