I am having some difficulty with a very annoying crash lateley. Basically what happens is, once an NPC reaches his destination, an event is run. It looks like this:
(Event1)
Defreeze Player
Change Player Map Icon
Map Position (53,98)
Teleport to Vale Surroundings 8
NPC Control: Add DwarfFollow (53,100)
Set gb_Dwarf? = 1
When teleported to the location, it has these startup items:
(Event2) for Location: Vale Surroundings 8
Play Music
Conditional: gb_Dwarf? = 1
If True do:
NewX = PlayerX
NewY = PlayerY
NewX = NewX + 1
NewY = NewY - 1
NPC Control: Add DwarfFollow (NewX,NewY)
Else End Event
But all that happens is the game crashes as soon as you teleport to the location. You do stay in the map for about a second before it crashes. The music does play, and the NPC does appear, but after that, boom.
At first I thought it was because I had Event1 run in both the NPC's reach target event and target proximity event. I removed the reach target event. Still crashed.
Then I thought it was because there was a fade action after the teleport (I had fade actions back then). I took out the fade back, and forgot to take out the fade to. This dod NOT crash, however, I couldn't see anything of course. I went back and removed the fade to black event. Now it crashes again.
I then thought it may be due to the fact that I had placed a cut-scene stamp (Moving the camera) in the previous map and forgot to remove it. Still crashed.
I thoroghly checked over these events, nothing seems wrong.
I checked both locations, nothing seems wrong.
It still crashes.
I am about to go insane. Anyone have any ideas?
------------------
"Stiney! Get me a danish!"