Page 1 of 1
Customize item button options
Posted: Mon Dec 31, 2012 3:01 am
by flametard
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
Posted: Tue Jan 01, 2013 8:38 pm
by Mit
sets the text to replace 'Use Item'.
replaces the 'details' button.
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..
then to your script add
Code: Select all
Event( "ItemDetails", "Water" )
{
*msg %PLAYER% You sprinkled the water on the ground
*grantitem %PLAYER% -1 Water
}
For more details see the thread here :
http://theuniversal.net/forum/viewtopic.php?t=9279
Posted: Mon Jan 07, 2013 5:05 pm
by flametard
The event
Event("ItemDetails","Clay")
{
*msg %player% Take this clay to a ceramics studio so it can be fired into bricks or bottles.
}
doesn't appear to do anything when i go in the game and click on the details button.
Posted: Mon Jan 07, 2013 5:13 pm
by flametard
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.
Posted: Mon Jan 07, 2013 11:15 pm
by flametard
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:
(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
Posted: Mon Jan 07, 2013 11:17 pm
by zaroba
is that (null) supposed to be there?
I haven't tried messing with it yet, but it doesn't look right to me.
Posted: Mon Jan 07, 2013 11:35 pm
by flametard
Ah hell, looking in the namesfile again, and all that null stuff is gone, and it appears to be taking new stuff so illl imput all the info in again.. sigh
Posted: Tue Jan 08, 2013 12:07 am
by flametard
I reset all the info, ao I'm hoping it sticks this time.
Tried to edit itemdetails again, still nothing.
Posted: Tue Jan 08, 2013 12:19 am
by zaroba
you wouldn't happen to have 2 different server EXEs in the folder, do you?
If so, maybe the wrong one is being opened and breaking it.
Posted: Tue Jan 08, 2013 12:29 am
by flametard
I have world exe and universal world exe in my universal folder
Posted: Tue Jan 08, 2013 1:16 am
by flametard
Ok, so after some testing, i discovered that if you dont set the command *itemdetailstext, it wont acknowledge the itemdetails event in the script.
the only thing i dont understand is why my namesfile lost the information i set. but I am continuing forward.
Posted: Thu Jan 10, 2013 3:51 am
by flametard
Bad news: Namesfile mysteriously got chopped again.
good news: I have a backup saved this time.
Anyone have any clues as to whats happening?
Posted: Thu Jan 10, 2013 4:18 am
by flametard
see below! vv
Posted: Fri Jan 11, 2013 3:49 pm
by flametard
solving problems to myself. most current one below -V-
Posted: Fri Jan 11, 2013 4:02 pm
by flametard
I think there's a problem with the buildings editor. When i open the buildings editor, I get an error. then i try again, it opens. then i restart my server, itemslist chopped.
Posted: Fri Jan 11, 2013 4:08 pm
by zaroba
using the 63.2 buildings editor?
I just opened zoric's bdat and saved it and the namesfile still reflects the changes I made when testing the stuff earlier.
Posted: Fri Jan 11, 2013 4:18 pm
by flametard
ah. 62.7 :\ MY BAD!