SphereCommunity
Custom Character Profile[Work in Progress] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Custom Character Profile[Work in Progress] (/Thread-Custom-Character-Profile-Work-in-Progress)



Custom Character Profile[Work in Progress] - Saint - 08-10-2013 05:11 AM

Second ever submission so be gentle, I've always wanted to learn to script and one of the things I have always envisioned is a custom character profile, basically a gump with more information than the tabs on the paperdoll provide.

Just the basic layout, figured I'd put this up here before I added more code.
Code:
[DIALOG d_cp]
100,100
page 0

resizepic 0 0 5100 639 600



dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
dtext 100 320 5850 Hunger Level:

gumppic -2  60 9002 //DRAGON BOARDER
gumppic 341 340 1418



page 1

button 4  30 5007 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5006 5007 1 3 806

///////ADD STUFF TO STATS PAGE

text 100 180 0 7
text 100 200 0 8
text 100 220 0 9
text 100 240 134 10
text 100 260 261 11
text 100 280 5 12
text 100 300 1890 13
//text 100 320 2099 14

//show their stats
text 250 180 0 015
text 250 200 0 016
text 250 220 0 017
text 275 180 0 018
text 275 200 0 019
text 275 220 0 020
text 250 240 0 021
text 250 260 0 022
text 250 280 0 023
text 250 300 0 024


[DIALOG d_cp_skills]
100,100
page 0

resizepic 0 0 5100 639 600

dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5007 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5006 5007 1 3 806

//////ADD STUFF TO SKILLS PAGE

[DIALOG d_cp_quests]
100,100
page 0

resizepic 0 0 5100 639 600

dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5007 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5006 5007 1 3 806

//////ADD STUFF TO QUESTS

[DIALOG d_cp_guild]
100,100
page 0

resizepic 0 0 5100 639 600

dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
text 545 5 0 6
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5007 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5006 5007 1 3 806


//////ADD STUFF TO GUILD

[DIALOG d_cp_titles
100,100
page 0

resizepic 0 0 5100 639 600

dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5007 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5006 5007 1 3 806


//////ADD STUFF TO TITLES

[DIALOG d_cp_journal]
100,100
page 0

resizepic 0 0 5100 639 600
dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5007 5007 1 2 805
button 532 30 5006 5007 1 3 806

//////ADD STUFF TO JOURNAL

[DIALOG d_cp_support]
100,100
page 0

resizepic 0 0 5100 639 600

dtext 20 5 0 Stats
dtext 110 5 0 Skills
dtext 195 5 0 Quests
dtext 280 5 0 Guild
dtext 370 5 0 Titles
dtext 455 5 0 Journal
dtext 545 5 0 Support
gumppic -2  60 9002

page 1

button 4  30 5006 5007 1 2 800
button 92  30 5006 5007 1 2 801
button 180 30 5006 5007 1 3 802
button 268 30 5006 5007 1 2 803
button 356 30 5006 5007 1 3 804
button 444 30 5006 5007 1 2 805
button 532 30 5007 5007 1 3 806

//////ADD STUFF TO SUPPORT

////////////////////////////////////////////////////DO NOT CHANGE BELOW THIS LINE

[DIALOG d_cp TEXT]
Stats
Skills
Quests
Guild
Titles
Journal
Support
HP/Max HP:
Stamina/Max Stamina:
Mana/Max Mana:
Bonus Strength:
Bonus Dexterity:
Bonus Intelligence:
Armor:
Attack Damage:
<HITS>
<STAMINA>
<MANA>
<MAXHITS>
<MAXSTAM>
<MAXMANA>
<MODSTR>
<MODINT>
<MODDEX>
<AR>

[DIALOG d_cp BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_skills TEXT]


[DIALOG d_cp_skills BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_quests TEXT]


[DIALOG d_cp_quests BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_guild TEXT]


[DIALOG d_cp_guild BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_titles TEXT]


[DIALOG d_cp_titles BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_journal TEXT]


[DIALOG d_cp_journal BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

[DIALOG d_cp_support TEXT]


[DIALOG d_cp_support BUTTON]
ON=800
    DIALOG d_cp
ON=801
    DIALOG d_cp_skills
ON=802
    DIALOG d_cp_quests
ON=803
    DIALOG d_cp_guild
ON=804
    DIALOG d_cp_titles
ON=805
    DIALOG d_cp_journal
ON=806
    DIALOG d_cp_support

//CREDIT: SAINT


*UPDATE*
Took some of your suggestions and added some more flair to the stats page.

*Up Next*
Looking to add a hunger gauge only problem is I can't seem to find the function to call or how to do it exactly :/ any ideas?
Was hoping to have it display in different colors depending on how serious (Stuffed: Green) (Could eat: Yellow) (Starving: Red)


RE: Custom Character Profile[Work in Progress] - darksun84 - 08-10-2013 05:31 AM

Nice , but it's better to made it a little smaller !


RE: Custom Character Profile[Work in Progress] - Snaker - 08-11-2013 03:08 AM

It's possible to show this dialog instead of paperdoll? how can I do?
I say also when players click on the bar of the client


RE: Custom Character Profile[Work in Progress] - Mordaunt - 08-11-2013 03:57 AM

Curious why you are using text instead of dtext thus making your script longer than it has to be....

by using dtext you can remove the [DIALOG blah TEXT] block and simply put the text at the end of the line

e.g.

dtext 10 10 90 hello world


RE: Custom Character Profile[Work in Progress] - Alaric - 08-11-2013 04:06 AM

(08-11-2013 03:57 AM)Mordaunt Wrote:  Curious why you are using text instead of dtext thus making your script longer than it has to be....

by using dtext you can remove the [DIALOG blah TEXT] block and simply put the text at the end of the line

e.g.

dtext 10 10 90 hello world

Or he can use forcycles to make it shorter Tongue It depends...


RE: Custom Character Profile[Work in Progress] - Mordaunt - 08-11-2013 04:07 AM

Regardless.... still gump scripting with outdated methods


RE: Custom Character Profile[Work in Progress] - JeBu - 08-20-2013 05:57 PM

screenshot?