ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Tutorials & Other Helpful Info (https://www.esoui.com/forums/forumdisplay.php?f=172)
-   -   Inspection using the chat window (https://www.esoui.com/forums/showthread.php?t=4917)

kerb9729 07/21/15 11:23 AM

Inspection using the chat window
 
Perhaps this is common knowledge, but I just discovered that I can do stuff like this in the chat window:

/script d(GetRawUnitName("player"))

(which displays "Mandhingo^Mx" in the chat window when I'm logged in on Mandhingo)

I wish I'd figured this out a week ago, it would have saved me much updating of files and /reloadui!

What other creative ways do you experienced authors use the chat window?

circonian 07/21/15 11:59 AM

Yes, even more useful though is to use an addon that has the ability to run code from within the game. Examples:

Click4Info This addon allows you to
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.
  • Search for global functions you can use in your code (sort of like looking at the API page on the wiki, but it does not show parameters or returns)
  • Search for constants by name -- For example your trying to figure out what kinds of ITEMTYPEs there are or what values they represent you can search for ITEMTYPE and it will show you all constants with that text in them & their values (if you turn on show values).
  • Search for Constants by value -- For example if your debugging some returned ITEMTYPE and your debug code says its the value 4, you can search for the value 4 and it will give you a list of all constants with a value of 4 then you can just look for which one is an ITEMTYPE and you know which ITEMTYPE it returned.
  • Save slash commands (with a favorites list) and run them at the click of a button. -- Saving slash commands is very useful for /zgoo xxxxx (or any) slash commands you use often or just to save it as a reference to objects you don't want to forget about that you may need later.

ZAM Notebook
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.

Notebook
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.

kerb9729 07/22/15 07:27 AM

Quote:

Originally Posted by circonian (Post 22175)
Yes, even more useful though is to use an addon that has the ability to run code from within the game. Examples:

Click4Info This addon allows you to
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.
  • Search for global functions you can use in your code (sort of like looking at the API page on the wiki, but it does not show parameters or returns)
  • Search for constants by name -- For example your trying to figure out what kinds of ITEMTYPEs there are or what values they represent you can search for ITEMTYPE and it will show you all constants with that text in them & their values (if you turn on show values).
  • Search for Constants by value -- For example if your debugging some returned ITEMTYPE and your debug code says its the value 4, you can search for the value 4 and it will give you a list of all constants with a value of 4 then you can just look for which one is an ITEMTYPE and you know which ITEMTYPE it returned.
  • Save slash commands (with a favorites list) and run them at the click of a button. -- Saving slash commands is very useful for /zgoo xxxxx (or any) slash commands you use often or just to save it as a reference to objects you don't want to forget about that you may need later.

ZAM Notebook
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.

Notebook
  • Type whatever code you want just like in a lua file & run it from within the game.
  • Allows you to save/reload the code you write.

edit -- I couldn't figure out how to upvote your post so I did it for the thread

I have been using CLick4Info, but I never realized that I could execute commands in it. It's been extremely useful just as a function search tool.

I didn't realize I could do that with ZAM Notebook either.

circonian 07/22/15 03:45 PM

Quote:

Originally Posted by kerb9729 (Post 22199)
edit -- I couldn't figure out how to upvote your post so I did it for the thread

I have been using CLick4Info, but I never realized that I could execute commands in it. It's been extremely useful just as a function search tool.

I didn't realize I could do that with ZAM Notebook either.

Yeah, I never really finished the UI, it still has those ugly < & > buttons at the top of the window...click the < & > buttons at the top to open the other windows, the > button on the far right is the one that opens the script window. Look at the pictures posted on the addon page, they have some info listed on them.


All times are GMT -6. The time now is 11:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI