XuN 
Sphere Developer
    
Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30
![]()
|
RE: Gump Menu Help, Page switch
Some extra help:
Code:
button 161 307 5541 5542 1 0 0
button 161 466 5541 5542 1 0 0
button 161 386 5541 5542 1 0 0
The last number there is the Button ID, 0 is the default for 'close' .. like when right click on it so never use it (unless you want to do a close button)
Code:
[DIALOG d_levelm button]
ON=0
You must there change that numbers for the ones of the BUTTON lines, right now they are all the same being overrided because of same ID.
At last, your question, you cannot avoid client to close the dialog since the buttons are closing it themselves ... but what you can do is to call the dialog again with something like this:
Code:
ON=1
// Str increase
// IF <src.restest1 i_stat_point> //btw, although it's commented ... 'restest1' should have a whitespace like this: 'restest 1'
src.consume=1 i_stat_point
src.str += 1
if (<src.restest 1 i_stat_point>)// if we still have stat point's item
src.dialog d_levelm
endif
src.sysmessage You don't have any more @1257 Stat Point(s) //Note: You cannot change the color of a half of the text, you can change the whole text's color or do not change it at all, so the '@1257' color code must be before the text: 'src.sysmessage @1257 You don't have any more Stat Point(s).'
One more thing, are you using one i_stat_point per each earned point? so if you get 10 stat points you have 10 items? I suggest you to use tags instead to reduce the item count.
(This post was last modified: 08-10-2015 05:05 AM by XuN.)
|
|
08-10-2015 05:04 AM |
|
|