Talk:MessageBox - Debug
There are no discussions on this page.
Hello there!
I'd like to ask for a way to define a perk or any variable in the sting by their Name field.
Scriptname PerkTomeNoPrereq extends ObjectReference Perk Property ThePerk Auto Event OnRead() if Game.GetPlayer().HasPerk(ThePerk) == False Game.GetPlayer().AddPerk(ThePerk) Debug.MessageBox("You have learned the perk: " + ThePerk) else Debug.MessageBox("You have already learned this perk.") endif EndEvent
I'd like this to display the NAME of the perk and not an editor id in the highlighted line. Any suggestions?
Thanks in advance!