Download
(73 Kb)
Download
Updated: 02-20-07 05:56 AM
Pictures
File Info
Updated:02-20-07 05:56 AM
Created:unknown
Downloads:1,955
Favorites:1
MD5:
Its' Eval
Version: 1.0-0
by: Itsnoteasy [More]
Eval was the first AddOn I ever wrote (back for WoW 1.2), when I got fed up of having to wrap
DEFAULT_CHAT_FRAME:AddMessage(tostring( ... ))
Around something every time I typed it into the /script command.

Eval, on the simplest level, allows you to enter any Lua expression, which it will then execute and display the result in the chat log. It also recognises most Lua statements and will execute them, as well as telling you what a variable's value is when you assign to it.

Finally, it can also print out tables in a fairly sane manner. By default, it will print up to 10 items and 3 levels deep, although you can change this by fiddling with the AddOn's database (see below).

Eval has only a single slash command:
/eval (lua code)
That's it. If you want to change how it prints out tables, just play with these variables:
Eval.db.profile.maxTableDepth = 3
Eval.db.profile.maxTableItems = 10
Eval.db.profile.displayAllKeys = true
Optional Files (0)


Post A Reply Comment Options
Old 02-28-07, 06:15 AM  
Itsnoteasy
A Murloc Raider
 
Itsnoteasy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 25
Uploads: 7
Originally posted by Arrowmaster
AceConsole-2.0 already has a /print command to do exactly this.
Not quite. /print does print out expressions, but it can't handle statements. Also, it attempts to print out tables in full, which doesn't really help if you've got a big table.

Finally, I think mine looks prettier :P

But thanks for that; never even knew /print was there.
Itsnoteasy is offline Report comment to moderator  
Reply With Quote
Old 02-24-07, 02:58 AM  
Arrowmaster
A Fallenroot Satyr

Forum posts: 23
File comments: 10
Uploads: 0
AceConsole-2.0 already has a /print command to do exactly this.
Arrowmaster is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: