View Single Post
09-11-18, 01:18 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
You need to create the "player" entry as a table

Lua Code:
  1. local _, ns = ...
  2. ns["player"] = {}
  3. ns["player"].name = UnitName("player")
Then in exp2.lua
Lua Code:
  1. ns["player"].class = "WARRIOR"

You can also get rid of the [""]
Lua Code:
  1. ns.player = {}
  2. ns.player.name = UnitName("player")

Then again, I could be about to learn something new.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 09-11-18 at 01:26 AM.
  Reply With Quote