Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Character Creation script
Author Message
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #1
Custom Character Creation script
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?
09-23-2013 05:24 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Custom Character Creation script
Try src.menu, but not sure about that
09-23-2013 05:44 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Custom Character Creation script
I have to ask the question....

Why a menu and not a dialog?

[Image: 2nis46r.jpg]
09-23-2013 06:19 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #4
RE: Custom Character Creation script
(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.
(This post was last modified: 09-23-2013 01:18 PM by Archaaz.)
09-23-2013 01:12 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #5
RE: Custom Character Creation script
(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.
09-23-2013 03:32 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #6
RE: Custom Character Creation script
Dialogs work brilliantly, and were not nearly as difficult to learn as I had thought. Thanks!
09-23-2013 05:34 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #7
RE: Custom Character Creation script
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.
09-23-2013 05:53 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #8
RE: Custom Character Creation script
(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.
09-23-2013 07:49 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #9
RE: Custom Character Creation script
you should look up gumpstudio and the sphere plugin for it, saves alot of time building the initial gumps and such.

[Image: matts_siggy.gif]
09-23-2013 09:30 PM
Find all posts by this user Like Post Quote this message in a reply
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #10
RE: Custom Character Creation script
(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.
(This post was last modified: 09-23-2013 10:01 PM by Archaaz.)
09-23-2013 10:00 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)