Customize item button options
- flametard
- Posts: 1245
- Joined: Sun Apr 01, 2007 2:05 am
- Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
- Contact:
Customize item button options
how does one change the name of the "use item" button when clicking on an item, such as when you can "mount" the horse. Oh, i see you can feed it too. thats 2 custom buttons.
also, how do you edit the "details" button for items?
thanks
also, how do you edit the "details" button for items?
thanks
Code: Select all
*itemusetext [ItemNum] [Text]
Code: Select all
*itemdetailstext [ItemNum] [Text]
When doing the latter on an item, you then need to script the response to that button press in an "ItemDetails" event.
e.g. If your item 4 is water, you might do something like..
Code: Select all
*itemdetailstext 4 Sprinkle
Code: Select all
Event( "ItemDetails", "Water" )
{
*msg %PLAYER% You sprinkled the water on the ground
*grantitem %PLAYER% -1 Water
}
http://theuniversal.net/forum/viewtopic.php?t=9279
- flametard
- Posts: 1245
- Joined: Sun Apr 01, 2007 2:05 am
- Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
- Contact:
also, I noticed that the buttons I renamed (like use item, and itemdetails) have all reverted into their default button name. perhaps this could be a clue? I'm pretty sure I always run things as administrator. it happened after the galaxy went offline last night... (lemme check n see if there's an update)
nope, no update. well I'm stumped.
nope, no update. well I'm stumped.
- flametard
- Posts: 1245
- Joined: Sun Apr 01, 2007 2:05 am
- Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
- Contact:
Still trying to figure out whats going wrong.
Checked my namesfile and it shows all the changes I made to the itembuttons, yet they still don't register in game. funny thing was, it worked for a few days, through server restarts and everything. but mysteriously stopped working.
Here's a sample of some of the text in my names file:
Checked my namesfile and it shows all the changes I made to the itembuttons, yet they still don't register in game. funny thing was, it worked for a few days, through server restarts and everything. but mysteriously stopped working.
Here's a sample of some of the text in my names file:
(null),234= Weild
(null),235= Party
(null),236= Unveil
(null),237= Unveil
(null),238= Unveil
(null),239= Unveil
(null),241= Read Map
(null),242= Drink
(null),243= Read Map
(null),244= Weild
(null),245= Read Map
(null),246= Read Map
(null),247= Pray
(null),253= Eat
(null),58= Dress
(null),59= Dress
(null),60= Dress
(null),61= Dress
(null),62= Weild