Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - bloodymirj

#1
I am noob with script, so if someone know answer help.
I have 6 hotspots for 6 objects . Every hotspot works like a button, and change object graphic.
(Example-   if player interact hotspot1 then the object1 change graphic to A, next time to B, next time C,then A again...).

   My problem.  I want to meke hotspot 7  to work like some final button which will do function only if there is a right combination of object graphic).   
   I tried this :

function hHotspot23_Interact()
{
   if (oABCprvo.Graphic == 105)
      (oABCtrece.Graphic == 107)
      (oABCtrece.Graphic == 106)
      (oABCcetvrto.Graphic == 107)
      (o123prvo.Graphic == 103)
      (o123drugo.Graphic == 102)
      (o123trece.Graphic == 104)
      (o123cetvrto.Graphic == 103)
          { oSemaforradi.Visible = true ;}


    and this(with variable, where variable  match  right graphics):

function hHotspot23_Interact()
{
   if {oABCprvo.Graphic = 105;}
      (abc2  == 1)
      (abc3  == 3)
      (abc4  == 2)
      (prvo  == 2)
      (drugo  == 3)
      (trece  == 2)
      (cetvrto == 3)
          { oSemaforradi.Visible = true ;}


SMF spam blocked by CleanTalk