View Full Version : Zelda RPGM2 question
BlueDragon
02-21-2005, 02:34 PM
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.
WarDragon
02-24-2005, 04:49 PM
Loading the distance between the party and the enemy.
BlueDragon
02-25-2005, 12:19 PM
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?
WarDragon
02-26-2005, 12:00 PM
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
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.