Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Help
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #1
Dialog Help
Hello, I am trying to create a script that allows players to customize an item by specifying a name and color through a dialog. However, I'm not quiet sure how to record the text the enter and also specify which characters and how many characters are allowed. Also I am not sure how to allow players to click a button for example I want them to click arrows to < > to sort through custom colors so i need to figure out how to have them hit a button on the dialog and have the button either change the tilepic color or the tilepic id assuming the tilepic's generate the color of the item also. Here is my current script so you can view the dialog and see what im trying to do I would also like to use a def table so I can specify certain colors if this is the correct way.

Code:
[ITEMDEF i_rr_test]
id=i_dye_tub

on=@dClick
src.dialog d_grandmaster_skill_reward
return 1

[ITEMDEF i_rr_test]
id=i_dye_tub

on=@dClick
src.dialog d_grandmaster_skill_reward
return 1

[DEFNAME gm_rr_colors]
gm_rr_color_0 0480
gm_rr_color_1 0481
gm_rr_color_2 0482
gm_rr_color_3 0483
gm_rr_color_4 0484
gm_rr_color_5 0485
gm_rr_color_6 0486
gm_rr_color_7 0487
gm_rr_color_8 0488
gm_rr_color_9 0489
gm_rr_color_10 048a
gm_rr_color_11 048b
gm_rr_color_12 048c
gm_rr_color_13 048d
gm_rr_color_14 048e
gm_rr_color_15 048f
gm_rr_color_16 0490
gm_rr_color_17 0491
gm_rr_color_18 0492
gm_rr_color_19 0493
gm_rr_color_20 0494
gm_rr_color_21 0495
gm_rr_color_22 0496
gm_rr_color_23 0497
gm_rr_color_24 0498
gm_rr_color_25 0499
gm_rr_color_26 049A


[DIALOG d_grandmaster_skill_reward]
0,0
page 0
resizepic 68 29 9200 288 309
button 180 309 243 248 1 0 0
button 110 309 238 240 1 0 1
button 250 309 244 246 1 0 2
dhtmlgump 71 55 280 113 1 1 To claim your reward, enter the name you wish your reward item to have and select its color. This menu will appear every time you log in until the skill reward process

is complete for said skill.
checkertrans 115 172 232 20
dtextentrylimited 117 173 229 21 1152 1 15
dtext 73 173 1152 Name:
dtext 77 230 1152 Color:
dtext 129 31 77 Grandmaster Skill Reward
tilepichue 175 230 0fab <dlocal.gm_rr_color>
button 163 268 4014 4015 1 0 3
button 215 268 4005 4006 1 0 4

[DIALOG d_grandmaster_skill_reward text]

[DIALOG d_grandmaster_skill_reward button]
ON=0
say 0
src.say 0
return 0
// Button 1
//

ON=1
local.gm_rr_color = 0480
local.gm_rr_name = <?>
say 1
// Button 2
//

ON=2
src.closealldialogs
local.gm_rr_color =
local.gm_rr_name =
src.dialog d_grandmaster_skill_reward
// Button 3
//

ON=3
say 3
return 0

ON=4
say 4
// Button 4
//

[EOF]
(This post was last modified: 04-24-2012 04:26 PM by Reflex.)
04-24-2012 01:10 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #2
RE: Dialog Help
I am not a dialog expert by far scripting wise. I am not sure if this is possible or not. I do know it sounds resource intensive if this isn't controlled.. As for checking who can and cannot change the colors and how to check for who can... I have a few ideas. Allow for a one time use item which is removed when the settings are chosen. Another option would be a player or account tag. There is options for context entry to enter in values or edit some. As for a progressive arrow feature. I am not sure. Again. I am not the dialog expert.
04-29-2012 01:29 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)