SphereCommunity
Skill gump and dialog - Printable Version

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

Pages: 1 2 3 4


RE: Skill gump and dialog - kn4tseb - 06-27-2014 05:25 AM

worked perfectly ^^ THXXX!


RE: Skill gump and dialog - kn4tseb - 06-27-2014 02:28 PM

Okey guys i have almost ended the dialog but now i need suggestions and advices for some hard stuff about it..

i have created 5 new skills so i kept the default skillgump and added a new similar one with the new skills, now i want to add the skilllock stuff ..
at first im trying to do it as similar as the default one, so i made 5 checkboxes and an OK button, so checkboxes gumpids are the very same used by default skill gump (2435 2437)
but if i want to continue with this and if am not mistaken it would be neccesary to make like ~120 dialogs considering the combination of 5 diferent checkboxes between gump_up and gump_down
to simulate when skill is skilllocked to 1 or 0 (im not considering -1 value yet).

it might look really crazy, but if im gonna keep this way on i need to be certain that it would work.

once the checkbox are pressed the button runs this:

PHP Code:
FOR 1045 1049 // checkboxes ids
    
IF (<argchk<dlocal._for>>)
//        sdialog xxxxxx
        
for 58 62                           // skill numbers
            
if (<src.skilllock.<dLOCAl._for>> == 0)     
            
src.skilllock.<dLOCAL._for> = 1
//        elif (<src.skilllock.<dLOCAL._for>> == 1)
//            src.skilllock.<dLOCAK._for> = 0
        
endif                     
        endfor
    ENDIF
   ENDFOR 

Tthe real problem is how can i match the skilllock checks to a corresponding dialog to show...

if skilllock checks return values like (For example)
0
0
1
1
1
how can i manage to make it know which dialog will be shown considering the checkboxes gump_up and gump_down

i hope i have made myself clear ... for some reason i always manage to complicate things when explaining xDDDD

Regards my friends


RE: Skill gump and dialog - evening - 01-29-2015 08:28 PM

Can send out reference reference


RE: Skill gump and dialog - XuN - 01-29-2015 08:32 PM

<src.skilllock.<dlocal._for>.lock> ?