SphereCommunity
Skill calling, dialog buttons - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Skill calling, dialog buttons (/Thread-Skill-calling-dialog-buttons)



Skill calling, dialog buttons - Tastaran - 03-26-2017 06:24 AM

Hi,

I have 2 problems which i cant solve.

1) How can I call some skill in script by number ? - exactly its name and skill?(like alchemy, anatomy ...) ... I need it to my dialog of all skills. Of course I can write it one by one, but its not ideal Smile.

like this :
while (local.x < local.number_of_skills)
dtext 50 50+local.x 0 Skill_(local.x).name
local.x +1
endwhile

2) Is here any trigger of buttons to "anyButton" ? I Have large dialog and solve every button single is not possible.

I need something like this (it was in old sphere, but in 56c doesnt exist.)
on=@AnyButton
dtext 10 10 0 U Pressed button <argn>

Thanks.


RE: Skill calling, dialog buttons - Artyk - 03-26-2017 08:26 PM

For skills: <serv.skill.<dlocal.x>.name>


RE: Skill calling, dialog buttons - Ben - 03-27-2017 12:10 AM

As for buttons... I have never seen anything close to on=@anybutton.
The only thing that exists is ON=4 105 for example where this would trigger any button from 4 to 105 and <ARGN> is the button number


RE: Skill calling, dialog buttons - Tastaran - 03-29-2017 11:01 PM

Hello,

yea something like this i wanted Smile Thank you both of you.