Legacy GM combination trouble

phillipPbor

Member
hello, I want to make a d&d code combination puzzle.
prob.PNG

the click boxes are hotspots, if you want to click to goto_room.

(the 3 numerals support to have there numeral sprites, detect if there current image_index)

(so that the (CHECK_coder) will detect if the obj_numbers have a correct numeral image)
(example: 2-3-4 are 3 digits)
 

Desix

Member
You pretty much already know what you want to do. 3 number objects, with images of each digit, then it checks each one's image to know if the correct combo is there.

You already said it.
 

phillipPbor

Member
You pretty much already know what you want to do. 3 number objects, with images of each digit, then it checks each one's image to know if the correct combo is there.

You already said it.
but they didn't react when they are at currant image.

Code:
Information about object: obj_password_obelisk_1
Sprite: sprite_coding_digits
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:

No Physics Object
Create Event:

for all check_combination: set variable correction to 0
set variable digit1 to correction
Step Event:

if image_index is equal to 1
      set variable digit1 relative to 1
else
      set variable digit1 relative to 0
 

Desix

Member
You could just check for the image, you don't need to make a second variable to copy it (at least I don't think so).

How does it check the numbers?
 

phillipPbor

Member
You could just check for the image, you don't need to make a second variable to copy it (at least I don't think so).

How does it check the numbers?
(how dose it check the images?)
(using the correct var. if the correct var is added into 3 then it will be over)
(the correct image number causing it to add 1 value number to the correction obj)
 

Desix

Member
So the numbers need to be 5? Do you have a separate object for each one or are all 3 the same object?
 

phillipPbor

Member
So the numbers need to be 5? Do you have a separate object for each one or are all 3 the same object?
all 3 digit objs have a same event and action but marked with a number so

obj_password_obelisk_1
obj_password_obelisk_2
obj_password_obelisk_3
 

phillipPbor

Member
hey, just want to know...

how do you make a puzzle react if all 3 of the digits are at the correct number (of image index)

var digitcorrect = true;
with (obj_digit_par)
{
if (image_index != correctDigit) {
digitcorrect = false;
break;
}
}


(just for benjimen)
 
Last edited:
Top