- Joined
- Jul 6, 2022
- Messages
- 15
- Reaction score
- 3
- First Language
- English
- Primarily Uses
- RMMV
I'm using Yanfly's self variables plugin and was wondering about something
I have 2 identical action button events ("trees") with this setup:
page 1
◆Control Variables:#0012 Self Var Tree X = Map X of This Event
◆Control Variables:#0013 Self Var Tree Y = Map Y of This Event
◆Control Variables:#0018 CurrentTreeX = Self Var Tree X
◆Control Variables:#0018 CurrentTreeX = Self Var Tree Y
◆Control Variables:#0006 FireX = Map X of Fire
◆Control Variables:#0007 FireY = Map Y of Fire
◆Set Event Location:Fire, ({CurrentTreeX},{CurrentTreeY})
page 2
◆If:FireX = CurrentTreeX
◆If:FireY = CurrentTreeY
◆ tree is burning etc...
I only want the latest tree that I clicked on to burn, but both of them are burning and I'm confused why?
"CurrentTreeXY" should carry the coordinates of the second tree, therefore for the first tree to burn the conditions were not met. What am I doing wrong?
I have 2 identical action button events ("trees") with this setup:
page 1
◆Control Variables:#0012 Self Var Tree X = Map X of This Event
◆Control Variables:#0013 Self Var Tree Y = Map Y of This Event
◆Control Variables:#0018 CurrentTreeX = Self Var Tree X
◆Control Variables:#0018 CurrentTreeX = Self Var Tree Y
◆Control Variables:#0006 FireX = Map X of Fire
◆Control Variables:#0007 FireY = Map Y of Fire
◆Set Event Location:Fire, ({CurrentTreeX},{CurrentTreeY})
page 2
◆If:FireX = CurrentTreeX
◆If:FireY = CurrentTreeY
◆ tree is burning etc...
I only want the latest tree that I clicked on to burn, but both of them are burning and I'm confused why?
"CurrentTreeXY" should carry the coordinates of the second tree, therefore for the first tree to burn the conditions were not met. What am I doing wrong?