Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
GM Skill Rewards - Dialog Help
|
Author |
Message |
Reflex
Journeyman
Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1
|
GM Skill Rewards - Dialog Help
What's the best way to store the data I need stored? and then call on that data? I also need to know how to insert text into a gump and record it so it can be stored then applied once my apply button is hit or incase the dialog is closed etc..
[COMMENT GM Skill Rewards]
1. Check the skill point value of the first available gm reward skill.
2. If skill being checked is 100.0 fire dialog and store data. Data=Skill + Item being Created.
3. Choose and Apply the item values. The values are Name:, Color: Attributes: Industructable + Newbied.
4. Create item and place in players bag.
5. Set skill point value to 100.1 we will use the 100.1 as a type of memory.
6. Clear memory.
GM Skill Reward SCP File
Code:
on=@login
//EXAMPLE 1
if (<src.alchemy>==100.0)
src.sysmessage alchemy is <src.alchemy> fire gm skill reward menu and specify item id we are adding and modifying.
local_gmskill_itemid=i_mortar_pestles
dialog d_grandmaster_skill_reward
return 0
elif (<src.blacksmithing>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage blacksmithing is <src.blacksmithing> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.bowcrafting>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage bowcrafting is <src.bowcrafting> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.lumberjacking>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage lumberjacking is <src.lumberjacking> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.magery>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage magery is <src.magery> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.mining>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage mining is <src.mining> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.musicianship>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage musicianship is <src.musicianship> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.taming>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage taming is <src.taming> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
elif (<src.inscription>==100.0)
dialog d_grandmaster_skill_reward
src.sysmessage inscription is <src.inscription> fire gm skill reward menu and specify item id we are adding and modifying.
return 0
else
return 0
endif
return 0
ENDIF
[EOF]
[CODE]
Dialog SCP File
[ITEMDEF i_rr_test] // only used to call dialog to test it.
id=i_dye_tub
on=@dClicks
src.dialog d_grandmaster_skill_reward
return 1
[DEFNAME gm_rr_colors]
gmskill_rr_color_0 0480
gmskill_rr_color_1 0481
gmskill_rr_color_2 0482
gmskill_rr_color_3 0483
gmskill_rr_color_4 0484
gmskill_rr_color_5 0485
gmskill_rr_color_6 0486
gmskill_rr_color_7 0487
gmskill_rr_color_8 0488
gmskill_rr_color_9 0489
gmskill_rr_color_10 048a
gmskill_rr_color_11 048b
gmskill_rr_color_12 048c
gmskill_rr_color_13 048d
gmskill_rr_color_14 048e
gmskill_rr_color_15 048f
gmskill_rr_color_16 0490
gmskill_rr_color_17 0491
gmskill_rr_color_18 0492
gmskill_rr_color_19 0493
gmskill_rr_color_20 0494
gmskill_rr_color_21 0495
gmskill_rr_color_22 0496
gmskill_rr_color_23 0497
gmskill_rr_color_24 0498
gmskill_rr_color_25 0499
gmskill_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 <dlocal_gmskill_itemid> <dlocal.gmskill_rr_color> //item id + current 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 // Cancel
say 0
return 0
ON=1 //Apply Button
//serv new item local_gmskill_itemid
//color the item
//set item attributes
//set the items name
//clear memory
say 1
ON=2 // Reset Dialog and start customization over.
src.closealldialogs
local.gmskill_rr_color =
local.gmskill_rr_name =
src.dialog d_grandmaster_skill_reward
ON=3 //Left Arrow for choosing colors to cycle through hue list.
say 3
return 0
ON=4 // Right Arrow for choosing colors to cycle through hue list.
say 4
|
|
12-17-2013 04:28 PM |
|
|
Alaric
Journeyman
Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7
|
RE: GM Skill Rewards - Dialog Help
redo first part using forcycle and defname.
defname
xyz alchemy, anatomy, etc.
Code:
for <count>
get argument from def.xyz with index <local._for>
and check
endfor
Second: you can call dialog with arguments (dialog d_xx,page,arg1,arg2,...) or store it in list(serv.list.xxx) or ctag is good for that too.
And the color part... you can store just the first one and add specific amount. Since they are all +1.
(This post was last modified: 12-17-2013 06:00 PM by Alaric.)
|
|
12-17-2013 05:55 PM |
|
|
User(s) browsing this thread: 1 Guest(s)