SphereCommunity
Custom Character Creation script - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Custom Character Creation script (/Thread-Custom-Character-Creation-script)



Custom Character Creation script - Archaaz - 09-23-2013 05:24 AM

I am trying to use the following menu, and a few others like it, as part of a custom character creation process using ON=@LOGIN. Basically, I want to attach a number of permanent tags to the character, some random and some selected, among other things. Everything seems to work except the menus.

Upon logging in, the first menu (listed below) shows up, with a list of possible towns to choose from, and a choice of cancel or continue. Upon selecting a town and choosing 'continue' or 'cancel' (or upon right clicking) I receive am 'Unexpected Menu Info' sysmessage, and the script ends. I have tried troubleshooting various fixes, including removing the SRC.TAG bit from each entry, reformatting, and countless other things..

I likewise tried a scrolling menu, with 1, 2, 3, etc. instead of 0 for each entry, but it just presented a small scrolling menu with some strange graphics (ankhs, a person, and a no draw), and had the same error.

Quote:[MENU m_birthtown]
Choose the Town of Your Birth:

ON=0 Britain
SRC.TAG.TOWNBIRTH = Britain
MENU m_virtue
ON=0 Jhelom
SRC.TAG.TOWNBIRTH = Jhelom
MENU m_virtue
ON=0 Minoc
SRC.TAG.TOWNBIRTH = Minoc
MENU m_virtue
ON=0 Moonglow
SRC.TAG.TOWNBIRTH = Moonglow
MENU m_virtue
ON=0 New Magincia
SRC.TAG.TOWNBIRTH = New Magincia
MENU m_virtue
ON=0 Skara Brae
SRC.TAG.TOWNBIRTH = Skara Brae
MENU m_virtue
ON=0 Trinsic
SRC.TAG.TOWNBIRTH = Trisic
MENU m_virtue
ON=0 Yew
SRC.TAG.TOWNBIRTH = Yew
MENU m_virtue
ON=0 Bucanneer's Den
SRC.TAG.TOWNOFBIRTH = Bucaneer's Den
MENU m_virtue
ON=0 Cove
SRC.TAG.TOWNBIRTH = Cove
MENU m_virtue
ON=0 Serpent's Hold
SRC.TAG.TOWNBIRTH = Serpent's Hold
MENU m_virtue
ON=0 Vesper
SRC.TAG.TOWNBIRTH = Vesper
MENU m_virtue

ON=@Cancel
MENU m_birthtown
RETURN

I know this is pretty simple stuff, but what am I doing wrong?


RE: Custom Character Creation script - darksun84 - 09-23-2013 05:44 AM

Try src.menu, but not sure about that


RE: Custom Character Creation script - Mordaunt - 09-23-2013 06:19 AM

I have to ask the question....

Why a menu and not a dialog?


RE: Custom Character Creation script - Archaaz - 09-23-2013 01:12 PM

(09-23-2013 06:19 AM)Mordaunt Wrote:  I have to ask the question....

Why a menu and not a dialog?

I was actually asking myself that last night. I think it is probably a better way to go about it, though I will have to research dialog creation a bit more. Menu seemed easier at the time. though I think Dialog will be more dynamic and provide more functionality. This is basically the first script I write and am actually testing.


RE: Custom Character Creation script - Archaaz - 09-23-2013 03:32 PM

(09-23-2013 05:44 AM)darksun84 Wrote:  Try src.menu, but not sure about that

Thanks. I gave it a shot. I am not sure what the issue is, but I think I will go with dialogs instead.


RE: Custom Character Creation script - Archaaz - 09-23-2013 05:34 PM

Dialogs work brilliantly, and were not nearly as difficult to learn as I had thought. Thanks!


RE: Custom Character Creation script - XuN - 09-23-2013 05:53 PM

The problem with menus is that they works like a 'Target' they get broken if you dclick,use,equip anything, that's why it doesn't work for you, because on character creation a lot of things happen... it will work with timerf 5 or something like, FYI. But dialog option is always better.


RE: Custom Character Creation script - Archaaz - 09-23-2013 07:49 PM

(09-23-2013 05:53 PM)XuN Wrote:  The problem with menus is that they works like a 'Target' they get broken if you dclick,use,equip anything, that's why it doesn't work for you, because on character creation a lot of things happen... it will work with timerf 5 or something like, FYI. But dialog option is always better.

Thanks for the info. The dialogs are definitely much better. Takes a bit of tweaking here and there to get the sizes and everything just right, but were a lot easier to come to terms with than I expected.


RE: Custom Character Creation script - Rattlehead - 09-23-2013 09:30 PM

you should look up gumpstudio and the sphere plugin for it, saves alot of time building the initial gumps and such.


RE: Custom Character Creation script - Archaaz - 09-23-2013 10:00 PM

(09-23-2013 09:30 PM)Rattlehead Wrote:  you should look up gumpstudio and the sphere plugin for it, saves alot of time building the initial gumps and such.

Thanks! I actually used GumpStudio initially, but stopped as I thought it was only usable with RunUO. I not realize that there was a sphere plugin.