Author Topic: Puzzle Boards  (Read 19227 times)

0 Members and 1 Guest are viewing this topic.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #15 on: October 02, 2009, 11:38:24 PM »
0
Just a little help, I've put all the boards onto one JPEG file so that you can look at them side by side!

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
puzzles.jpg
« Last Edit: October 02, 2009, 11:42:07 PM by UOMaddog »
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #16 on: October 03, 2009, 12:26:51 AM »
0
Ok, so 10 minutes of work and I've done it! You must scan for them in a particular order. I have attached a picture that shows the exact order and which one to scan. I'll check over it again in the morning to make sure that I didn't mess anything up since I'm a little brain dead at 4:26am!

The first three you can uniquely identify by just that one spot, then, by process of elimination, you can find a particular spot in one of the remaining puzzles, so you check for that, then from the remaining puzzles you can uniquely identify another one, and so on and so forth. So while at first glance you may say, "But #12 and #15 both have a green dot in the third row down on the far right!", but you have already determined that it is NOT #12 if you're checking for #15!! Mwahaha!

Hope this helps! 15 scans and you're done!

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
puzzleorder.jpg
« Last Edit: October 03, 2009, 12:30:05 AM by UOMaddog »
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Bagenholt

  • Guest
Re: Puzzle Boards
« Reply #17 on: October 03, 2009, 02:45:14 AM »
0
Wow... Impressive.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #18 on: October 03, 2009, 05:29:24 AM »
0
Big big help Maddog. Using the solutions to help identify the board hadn't occured to me.

Ok I have some questions about the EUO commands

will
Code: [Select]
set contpos 120 120
put the gump at pixel 120 120

or will I have to
Code: [Select]
set %x 120
set %y 120
set contpos %x %y
to make that happen?

« Last Edit: October 03, 2009, 05:33:48 AM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #19 on: October 03, 2009, 05:45:09 AM »
0
You know I think I just answered my own question.


set nextCPos might be what I'm looking for.

so

Code: [Select]
set #lObjectType xxxxxx ;<----puzzle board token type
set NextCPos 120 120
event macro 17
would open the puzzleboard at pixel 120 120 on the game screen right?
Sarcasm is your body's natural defense against stupidity.

Scrripty

  • Guest
Re: Puzzle Boards
« Reply #20 on: October 03, 2009, 05:51:59 AM »
0
Big big help Maddog. Using the solutions to help identify the board hadn't occured to me.

Ok I have some questions about the EUO commands

will
Code: [Select]
set contpos 120 120
put the gump at pixel 120 120

or will I have to
Code: [Select]
set %x 120
set %y 120
set contpos %x %y
to make that happen?

By the way, this is the same expression.  You did it the same way just using variables set to 120 in the second one.   Pretty fun tho isn't it? :)

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #21 on: October 03, 2009, 06:20:08 AM »
0
Yeah I'm going to use
Code: [Select]
sub open_puzzle_board
set #lObjectType XXXXXX ;<-----whatever the type is for the boards
nextCPos 120 120 ;<-----or something close to that
Event Maco 17 0
pause 20
return

If that works.
I won't be able to check until I get home later tonight......working at Sears for the day.

The potential downfall I've thought of is that the puzzleboard type might be the same as a promotional token type since they are the same thing with different colors.
« Last Edit: October 03, 2009, 07:01:50 AM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #22 on: October 03, 2009, 06:48:17 AM »
0
Okay is this good structure?
Code: [Select]
sub find_board
savepix x y ;<---location of first check
if #pixcol blue ;<---whatever the value for blue is
{
  gosub solve_board_6
}
else
savepix x y ;<---location of second check
if #pixcol green ;<---whatever the value for green is
{
 gosub solve_board_8
}
else
savepix x y ;<---location of third check
if #pixcol blue ;<whatever the value for blue is
{
 gosub solve_board_11
}
else


etc etc etc


savepix x y ;<---location of 15th check
if #colpix blue ;<----whatever the value for blue is
{
 gosub solve_board_2
}
else
{
 gosub solve_board_16
}
return

Or should I have the stuff after the "else" braced as well?

Do I even need the else at all since it only goes to the solution sub if it finds the correct color otherwise it just goes to the next command right and scans the specified pixel?
« Last Edit: October 03, 2009, 06:53:32 AM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Scrripty

  • Guest
Re: Puzzle Boards
« Reply #23 on: October 03, 2009, 06:53:55 AM »
0
If you scan and ignore any tokens in the users pack right off the bat, that should work shouldn't it?

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #24 on: October 03, 2009, 07:05:41 AM »
0
If you scan and ignore any tokens in the users pack right off the bat, that should work shouldn't it?
If there is a need to I'll do that. I'm hoping that they will have different ItemTypes that would be the easiest.

At this point I think I'm mostly worried about figuring out how to use the pixel scanning correctly to find the color values I'm looking for.

Unless somebody sees a problem that hasn't occured to me.

And quite frankly I'm confused about namespace.....
Sarcasm is your body's natural defense against stupidity.

Scrripty

  • Guest
Re: Puzzle Boards
« Reply #25 on: October 03, 2009, 07:12:27 AM »
0
If you scan and ignore any tokens in the users pack right off the bat, that should work shouldn't it?
If there is a need to I'll do that. I'm hoping that they will have different ItemTypes that would be the easiest.

At this point I think I'm mostly worried about figuring out how to use the pixel scanning correctly to find the color values I'm looking for.

Unless somebody sees a problem that hasn't occured to me.

And quite frankly I'm confused about namespace.....

You'll probly need to scan for tokens and ignore the ones found so you don't end up using someones token that isn't smart enough to bank them before the script runs.  Telling people doesn't work usually. haha

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #26 on: October 03, 2009, 09:45:41 AM »
0
At this point in my texting life I'm willing to let them use the script with their tokens and have to read the instructions.

A wise man once told me that the best thing I'd ever do for scripting was to read the instructions for the script.
Sarcasm is your body's natural defense against stupidity.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #27 on: October 03, 2009, 09:50:24 AM »
0
First off, I had the same thought about tokens vs puzzle boards and knowing UO, they probably are the same item type, but there are some easy fixes for that, no worries! as for your puzzle identification sub, you can model it something like this:

Code: [Select]
sub PuzzleID
if (pixel=whatever) {
return 1
}
if (pixel=whatever) {
return 2
}
if (pixel=whatever) {
return 3
}
if (pixel=whatever) {
return 4
}
if (pixel=whatever) {
return 5
}
if (pixel=whatever) {
return 6
}
if (pixel=whatever) {
return 7
}
if (pixel=whatever) {
return 8
}
if (pixel=whatever) {
return 9
}
if (pixel=whatever) {
return 10
}
if (pixel=whatever) {
return 11
}
if (pixel=whatever) {
return 12
}
if (pixel=whatever) {
return 13
}
if (pixel=whatever) {
return 14
}
if (pixel=whatever) {
return 15
}
return 16 ;You can only get here if it fails everything else!

Basically just 15 "if" statements and you "return" as soon as it identifies itself. Just a note, if we're using the numbering system that I used in my puzzle board picture, it wouldn't be 1, 2, 3, 4, etc it would be whatever order i put them in (6,8,11,1210,7,15,3....etc)
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Puzzle Boards
« Reply #28 on: October 03, 2009, 10:08:57 AM »
0
just out of curiosity will this be posted for public once it is completed?  I would love a version of this.  hehe.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #29 on: October 03, 2009, 11:40:01 AM »
0
I was wondering if you HAD to tie an else to an if that's why i asked about having to have the else at all.

Now about the different numbered returns. Do they go back to different locations?

I'm under the impression that a return bounced the script to the line after the gosub command. Since there are 16 different solutions that I need to include how would the script then know which one to send to?  I can put an operation  in there after every if that adds to the previous value. The total of the variable then tells the script where to look for the sub for the solution for that value.
If I did this I'd put a rule about clearing the count variable at the top of the script.


just out of curiosity will this be posted for public once it is completed?  I would love a version of this.  hehe.
Oh yeah this would definitely be a public script. I don't see anything gamebreaking with this little learning tool.
Sarcasm is your body's natural defense against stupidity.

Tags: