Talk:MessageBox - Debug
Revision as of 09:10, 12 February 2012 by imported>IPalantir (Created page with "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...")
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!