SphereCommunity
Is it "safe" to completely overwrite a skill and replace it? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Is it "safe" to completely overwrite a skill and replace it? (/Thread-Is-it-safe-to-completely-overwrite-a-skill-and-replace-it)

Pages: 1 2 3


RE: Is it "safe" to completely overwrite a skill and replace it? - Skul - 08-25-2012 10:04 AM

scrolling can be added with htmlgump and dhtmlgump, although you can't scroll any other dialog elements, simply text. I'd say it would be better to use pages, list your skills by their 'type' (combat, magic, lore/knowledge, misc, etc etc) and change the page to 'expand' the skill tree.


RE: Is it "safe" to completely overwrite a skill and replace it? - darksun84 - 09-05-2012 10:27 AM

While i was crawling in the revision.txt i met this, i don't know if it was changed or useful Tongue :

- You can now add new SKILL sections, up to 70. SERV.MAXSKILL tells you how many skills are loaded. Notice
that they won't be sent to the client though, the client doesn't support them .

Well i noticed it was from the 55i revision Blush , maybe it's expanded now .


RE: Is it "safe" to completely overwrite a skill and replace it? - admin phoenix - 09-08-2012 09:26 PM

you put an up/down button on the reight side of you gump.
pushing the button down, will close the gump and reopen it again but with another rows Wink
it´s a fake scrolling gump.


RE: Is it "safe" to completely overwrite a skill and replace it? - kn4tseb - 06-26-2014 05:54 AM

(08-24-2012 02:28 AM)Skul Wrote:  Yes, that is completely possible Ray, I think you can even do that with:
Quote:- Added @UserSkills ("return 1" cancels the skill window being displayed).
Added in by Kell during the 55r period of sphere's development. So doing something like
Code:
on=@userskills
dialogclose d_skills
dialog d_skills
return 1
would be sufficient enough to overwrite the default in-game skill menu.


is d_skills the name of the default skill dialog????


RE: Is it "safe" to completely overwrite a skill and replace it? - Skul - 06-26-2014 06:48 AM

That dialog is client side, i'm pretty sure it's all encoded in skills.mul. You might have to use an editor to alter the contents of the skill list.


RE: Is it "safe" to completely overwrite a skill and replace it? - kn4tseb - 06-26-2014 08:02 AM

i dont want to alter the contents, but i understand.... i just wanted to know if it was possible to check if it's opened
BTW, is there any trigger that fires when a dialog is closed?

Ty


RE: Is it "safe" to completely overwrite a skill and replace it? - Extreme - 06-26-2014 08:12 AM

(06-26-2014 08:02 AM)kn4tseb Wrote:  i dont want to alter the contents, but i understand.... i just wanted to know if it was possible to check if it's opened
BTW, is there any trigger that fires when a dialog is closed?

Ty
Self made dialogs, when you close them, it 'presses' the button 0.
Did you read the sphere_dialog.scp as Feeh told you?

// NOTE: low button id's are reserved for page tabs.
// button id 0 is reserved for the CANCEL command
// TRYP arg3 INPDLG=arg1 arg2
// arg1=ITEM/CHAR property associated with this button
// arg2=formating for output/input (max length/max value)
// arg3= minimum privelege needed to change this, 255=never,admin=6,developer=5,gm=4,seer=3,couns=2


RE: Is it "safe" to completely overwrite a skill and replace it? - kn4tseb - 06-26-2014 08:53 AM

true, and i did read it.. there's just so much info and i forgot, thx xtreme
PD: im reading http://wiki.sphere.torfo.org/index.php/DIALOG this but i dont understand how radio/checkbox id's work.... are they just like a button? are they actually buttons??
because nothing seems to work >.< im using the id as the ON= Trigger just like with buttons but nothing happens.... im a bit tired xd


RE: Is it "safe" to completely overwrite a skill and replace it? - Extreme - 06-26-2014 09:32 AM

Yes, they are buttons, but they don't works as common buttons, they are used to make selections..