Stranded II
Scripts icon button icon button
3 replies how to change icon button?
can I change the icon button?
button¦interface¦ ID, Text [,"Icon"] [,"Script"]
is that script for changing the icon button?
if I can, what should I do to change the icon button with that script? Um... better explaining yourself might be in order...
But, you'll find an example of use of that command here...
strandedII\mods\Stranded II\sys\scripts\random_char_chieftain.s2s
The other random character files also have these uses... the main use is for trading. (That I've seen.)
IF you want a GENERAL icon change, meaning all the icons in the whole game.
strandedII\mods\Stranded II\sys\gfx\(iconbutton.bmp|iconbutton_over.bmp)
If this is not what your wanting, then maybe you should explain what you want to do... I want to make script for the anvil.
at first time, I think I can use the script :
strandedII\mods\Stranded II\sys\scripts\random_char_chieftain.s2s
as menu when I use the anvil.
but, when I click the button, the item instantly created. I want to add processing time when I click the button.
therefore, I use the script :
button¦interface¦ ID, Text [,"Icon"] [,"Script"]
for example :
button=blade,2 iron rod -> blade
page=blade
script=start
if (playergotitem(86)>=1){
freestored "unit",1,86,1;
$id=create("item",74);
store $id,"unit",1;
clear;
play "workmetal.wav";
process "Forging",5000;
}else{
clear;
add "I can't.";
msg_extend;
}
script=end
it's working but the button just check mark.. You could also use a combination that only works if the anvil is inrange.
But, if it works, then good enough.
Or does it work...