The lift is not working


(Comida Japonesa) #1

good morning people all right, i wanted to help me with something, well i did a lift so when the lever goes down the lift goes down and when the lever goes up the lift goes up so that for some reason the lever doesn’t want to go down and the lift still stays on top.
and this lift there:

the script is this:

elevscript1
{
spawn
{
accum 1 set 1
}

trigger elevscript1
{
accum 1 abort_if_not_equal 1
trigger bottom1 down
trigger bottom2 down
accum 1 set 0
wait 2000
trigger elevscript2 setaccum0
}

trigger setaccum1
{
accum 1 set 1
}
}

elevscript2
{
spawn
{
accum 2 set 1
}

trigger elevscript2
{
accum 2 abort_if_not_equal 0
trigger bottom1 up
trigger bottom2 up
accum 2 set 1
wait 2000
trigger elevscript1 setaccum1
}

trigger setaccum0
{
accum 2 set 0
}

}

bottom1
{
spawn
{
}

trigger down
{
gotomarker bottom1down 16 //speed of movement
trigger elevator open

}

trigger up
{
gotomarker bottom1up 16
trigger elevator close

}
}

bottom2
{
spawn
{
}

trigger down
{
gotomarker bottom2down 16
trigger elevator open
}

trigger up
{
gotomarker bottom2up 16
trigger elevator close
}
}

elevator
{
spawn
{
}

trigger open
{
wait 500
gotomarker floor1 300
}

trigger close
{
wait 500
gotomarker floor2 300
}
}

the lift map file and this:

mapadeteste36.pk3 (14.5 KB)

detail: I learned that I have to leave the name of the scriptname and targetname the same but in the target script trigger they are different because I don’t know if the same names in the script would work

I await the answer?