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

Messages - bloodymirj

#1
  Yes, it was typing problem in that. Works now.
  Insted 
           (oABCtrece.Graphic == 107) &&
           (oABCtrece.Graphic == 106) &&
   It should be :
Code: ags
    (oABCdrugo.Graphic == 106) &&
              (oABCtrece.Graphic == 106) &&


  Thank you all guys for help. The forum is great.

#2
 Thanks for quick  reply and tip about && and ||.
Game works (have no bugs) but function do nothing. I tried some other functions and same thing happen when i interact with hotspot(nothing:) ) .  Thanks anyway i will try to figure something up.

#3
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