Announcement

Collapse
No announcement yet.

Zelda RPGM2 question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Zelda RPGM2 question

    I noticed that when the ghost character gets near (or on top of) the character, some life is lost... without having it touch the event.

    How did you get this to happen?

    I've been trying to figure out a way to have this happen for a while.
    It is better to have an open ear and mind, than an open mouth.

    #2
    Re: Zelda RPGM2 question

    Loading the distance between the party and the enemy.

    Comment


      #3
      Re: Zelda RPGM2 question

      I get what you mean, but a little more detail would help...

      Is it a system script? Action? Content?

      Is the event set to touch? Auto? Equal?

      Does it repeat constantly? Are we talking about Event vs Party X, Y & Z location?
      It is better to have an open ear and mind, than an open mouth.

      Comment


        #4
        Re: Zelda RPGM2 question

        it's an action script ad it should look like this.

        Distance
        -----------
        date game info load
        event info load
        variable x=party x
        variable y=party y
        variable z=party z
        variable Tx=eventx
        variable Ty=eventy
        variable Tz=eventz
        variable DX=TX-X
        variable DY=TY-Y
        variable DZ=TZ-Z
        sbc dx</=0
        variable dx=dx x -1
        sbc end
        sbc dy </ =0
        variable dy=dy x -1
        sbc
        sbc dz</= 0
        variable dz= dz x -1
        sbc end
        sbc DX< =Y
        variable DisXY= dy
        sbc end
        sbc dx /> =y
        variable dis XY=dx
        sbc end

        the event is touch

        Comment

        Working...
        X