|
Joined: Oct 2007
Posts: 10
Pikka bird
|
OP
Pikka bird
Joined: Oct 2007
Posts: 10 |
I was wondering, in case of dialogs.. is it possible to, when scrolling with one bar, make another scroll?
By scrolling, I mean a vsbar in a list.
I have 2 lists of information that I need to scroll together, because if they don't, it doesn't match up and allign.
Any ideas?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
I'm not entirely sure but what you could do is make something that when an item is selected, the other listbox will check the same item/line number, the scrolls bars may not be alligned but it will match up.
dialog test {
title ""
size -1 -1 223 202
option dbu
combo 1, 3 5 100 200
combo 2, 120 3 100 200
}
on *:dialog:test:*:*: {
if ($devent == init) {
var %x = 1
while (%x <= 25) {
did -a test 1,2 Test
inc %x
}
}
if ($devent == sclick) {
if ($did isnum 1-2) did -c test 1,2 $did($dname,$did).sel
}
}
|
|
|
|
Joined: Oct 2007
Posts: 10
Pikka bird
|
OP
Pikka bird
Joined: Oct 2007
Posts: 10 |
Awesome dialog, that's exactly what I want it to do, but I need to put it into this dialog (sorry for not showing straight off) ..Yeah, I know it's Pokemon, but I just needed something to test and perfect my skills of dialogs, as I really like them. dialog Empoleon {
title "#395 Empoleon"
size -1 -1 700 500
option pixels notheme
text "#395 Empoleon | Enperuto ", 1, 10 9 157 17
icon 2, 10 33 272 205, C:\Images\p\Empoleon.png, 0
text "Ability - Torrent", 3, 17 308 269 19
text "Weight - 84.5 kg / 186.3 lbs.", 5, 17 326 268 17
text "Egg Steps to Hatch: 5120", 6, 16 359 268 17
text "Egg Groups: Water 1/ Ground", 7, 16 342 269 17
text "EVs from battling: 3 Special Attack", 8, 15 375 269 17
text "Type 1", 9, 10 242 100 17
text "Type 2", 10, 122 242 108 17
icon 11, 28 262 59 21, C:\Images\\types\type_Water.gif, 0
icon 12, 144 262 59 21, C:\Images\types\type_Steel.gif, 0
icon 14, 17 421 40 40, C:\Images\ani\ani_Piplup.gif, 0
text "---Level 16-->", 15, 61 433 71 17
icon 16, 136 421 40 40, C:\Images\ani\ani_Prinplup.gif, 0
text "---Level 36-->", 17, 181 432 75 17
icon 18, 261 420 40 40, C:\Images\ani\ani_Empoleon.gif, 0
list 19, 297 53 147 109
text "Base Stats", 20, 297 37 100 17
text "Move", 22, 468 53 100 17
text "Obtained via", 23, 580 53 100 17
list 24, 326 292 350 123, hsbar
text "Locations", 26, 326 275 100 17
list 25, 297 177 147 73, vsbar
text "Damage Taken", 27, 297 159 100 17
button "Close", 28, 364 437 281 31
box "Evolution Chain", 4, 6 403 301 62
box "Information", 13, 6 290 301 109
list 21, 468 70 100 200
list 29, 580 70 100 200
box "Moves", 30, 457 36 232 235
}
on *:dialog:Empoleon:sclick:28: { dialog -x Empoleon Empoleon }
on *:dialog:Empoleon:init:0: {
did -a $dname 19 HP - 84
did -a $dname 19 Attack - 86
did -a $dname 19 Defense - 88
did -a $dname 19 Special Attack - 111
did -a $dname 19 Special Defense - 101
did -a $dname 19 Speed - 60
did -a $dname 25 Normal - 50%
did -a $dname 25 Fire - 100%
did -a $dname 25 Water - 50%
did -a $dname 25 Electric - 200%
did -a $dname 25 Grass - 100%
did -a $dname 25 Ice - 25%
did -a $dname 25 Fight - 200%
did -a $dname 25 Poison - 0%
did -a $dname 25 Ground - 200%
did -a $dname 25 Flying - 50%
did -a $dname 25 Psychic - 50%
did -a $dname 25 Bug - 50%
did -a $dname 25 Rock - 50%
did -a $dname 25 Ghost - 50%
did -a $dname 25 Dark - 50%
did -a $dname 25 Steel - 25%
did -a $dname 25 Dragon - 50%
did -a $dname 21 Tackle
did -a $dname 29 Default Move
did -a $dname 21 Growl
did -a $dname 29 Default Move
did -a $dname 21 Bubble
did -a $dname 29 Default Move
did -a $dname 21 Swords Dance
did -a $dname 29 Level 11
did -a $dname 21 Peck
did -a $dname 29 Level 15
did -a $dname 21 Metal Claw
did -a $dname 29 Level 16
did -a $dname 21 Swagger
did -a $dname 29 Level 19
did -a $dname 21 Bubblebeam
did -a $dname 29 Level 24
did -a $dname 21 Fury Attack
did -a $dname 29 Level 28
did -a $dname 21 Brine
did -a $dname 29 Level 33
did -a $dname 21 Aqua Jet
did -a $dname 29 Level 36
did -a $dname 21 Whirlpool
did -a $dname 29 Level 39
did -a $dname 21 Mist
did -a $dname 29 Level 46
did -a $dname 21 Drill Peck
did -a $dname 29 Level 52
did -a $dname 21 Hydro Pump
did -a $dname 29 Level 59
did -a $dname 21 Water Pulse
did -a $dname 29 TM03
did -a $dname 21 Roar
did -a $dname 29 TM05
did -a $dname 21 Toxic
did -a $dname 29 TM06
did -a $dname 21 Hail
did -a $dname 29 TM07
did -a $dname 21 Hidden Power
did -a $dname 29 TM10
did -a $dname 21 Ice Beam
did -a $dname 29 TM13
did -a $dname 21 Blizzard
did -a $dname 29 TM14
did -a $dname 21 Hyper Beam
did -a $dname 29 TM15
did -a $dname 21 Protect
did -a $dname 29 TM17
did -a $dname 21 Rain Dance
did -a $dname 29 TM18
did -a $dname 21 Frustation
did -a $dname 29 TM21
did -a $dname 21 Earthquake
did -a $dname 29 TM26
did -a $dname 21 Return
did -a $dname 29 TM27
did -a $dname 21 Dig
did -a $dname 29 TM28
did -a $dname 21 Brick Break
did -a $dname 29 TM31
did -a $dname 21 Double Team
did -a $dname 29 TM32
did -a $dname 21 Rock Tomb
did -a $dname 29 TM39
did -a $dname 21 Aerial Ace
did -a $dname 29 TM40
did -a $dname 21 Facade
did -a $dname 29 TM42
did -a $dname 21 Secret Power
did -a $dname 29 TM43
did -a $dname 21 Rest
did -a $dname 29 TM44
did -a $dname 21 Attract
did -a $dname 29 TM45
did -a $dname 21 Steel Wing
did -a $dname 29 TM47
did -a $dname 21 Brine
did -a $dname 29 TM55
did -a $dname 21 Fling
did -a $dname 29 TM56
did -a $dname 21 Endure
did -a $dname 29 TM58
did -a $dname 21 Shadow Claw
did -a $dname 29 TM65
did -a $dname 21 Stealth Rock
did -a $dname 29 TM76
did -a $dname 21 Captivate
did -a $dname 29 TM78
did -a $dname 21 Rock Slide
did -a $dname 29 TM80
did -a $dname 21 Sleep Talk
did -a $dname 29 TM82
did -a $dname 21 Natural Gift
did -a $dname 29 TM83
did -a $dname 21 Grass Knot
did -a $dname 29 TM86
did -a $dname 21 Swagger
did -a $dname 29 TM87
did -a $dname 21 Pluck
did -a $dname 29 TM88
did -a $dname 21 Substitute
did -a $dname 29 TM90
did -a $dname 21 Flash Cannon
did -a $dname 29 TM91
did -a $dname 21 Cut
did -a $dname 29 HM01
did -a $dname 21 Surf
did -a $dname 29 HM03
did -a $dname 21 Strength
did -a $dname 29 HM04
did -a $dname 21 Defog
did -a $dname 29 HM05
did -a $dname 21 Rock Smash
did -a $dname 29 HM06
did -a $dname 21 Waterfall
did -a $dname 29 HM07
did -a $dname 21 Rock Climb
did -a $dname 29 HM08
did -a $dname 21 Double Hit
did -a $dname 29 Egg Move
did -a $dname 21 Supersonic
did -a $dname 29 Egg Move
did -a $dname 21 Yawn
did -a $dname 29 Egg Move
did -a $dname 21 Mud Sport
did -a $dname 29 Egg Move
did -a $dname 21 Mud-slap
did -a $dname 29 Egg Move
did -a $dname 21 Snore
did -a $dname 29 Egg Move
did -a $dname 21 Flail
did -a $dname 29 Egg Move
did -a $dname 21 Agility
did -a $dname 29 Egg Move
did -a $dname 21 Aqua Ring
did -a $dname 29 Egg Move
did -a $dname 21 Hydro Pump
did -a $dname 29 Egg Move
did -a $dname 24 Ruby - Not Obtainable
did -a $dname 24 Sapphire - Not Obtainable
did -a $dname 24 Emerald - Not Obtainable
did -a $dname 24 Fire Red - Not Obtainable
did -a $dname 24 Leaf Green - Not Obtainable
did -a $dname 24 Diamond - Evolve from Prinplup
did -a $dname 24 Pearl - Evolve from Prinplup
}
on *:dialog:empoleon:sclick:28: { dialog -x empoleon empoleon } Just to let you know, this is how I open dialogs from a combo: on *:dialog:p:sclick:*:{
if ($did == 11) {
echo -at $did($dname,11).text
dialog -m $did($dname,11).text $did($dname,11).text
}
} So.. how would I implement it?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on *:dialog:empoleon:sclick:*: {
if ($did == 28) dialog -x empoleon empoleon
if ($did == 21) || ($did == 29) did -c empoleon 21,29 $did($dname,$did).sel
}
By the way, you're missing HM02. Edit: I also noticed you have too sclick events to close the dialog.
|
|
|
|
Joined: Oct 2007
Posts: 10
Pikka bird
|
OP
Pikka bird
Joined: Oct 2007
Posts: 10 |
Empoleon is a penguin and HM02 is fly Penguins cannot fly!
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Sorry I don't really know pokemon moves. But they can fly if you throw them.
|
|
|
|
Joined: Oct 2007
Posts: 10
Pikka bird
|
OP
Pikka bird
Joined: Oct 2007
Posts: 10 |
Pfft, cocky
Anyway thanks for the great help.
Last edited by Moon412; 07/03/08 05:50 PM.
|
|
|
|
|