Forum

> > Stranded II > Scripts > icon button
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch icon button

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt icon button

Adie My
User Off Offline

Zitieren
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?

alt Re: icon button

Lion_Hearted
User Off Offline

Zitieren
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...

alt Re: icon button

Adie My
User Off Offline

Zitieren
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..

alt Re: icon button

Lion_Hearted
User Off Offline

Zitieren
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...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht