Oh i just need to use functions?
I have no idea what you mean. I give up.
and how can i make the boss to move during the events?
In the event script, you should place an event step:
script_event something{
@Initialize{
(image loading and stuff)
}
@MainLoop{
stuff happens;
SetStep(1); //sets the eventstep value to 1
more stuff happens;
}
@Finalize{
(image deleting etc.)
}
}
And then in the main script's @MainLoop:
@MainLoop{
if(GetEventStep==1){ makethebossmove;}
yield;
}
That should be the gist of it.
Now for a question of my own:
What exactly is common data?
From what I've seen, it is a value shared across scripts.
And while the Danmakufu wiki shows how it works, it doesn't explain some things:
1. If the above dfinition of common data is false, could someone post what it is supposed to be?
2. Where are these values stored exactly?
3. I was looking at Mewkyuu's Giratina script, and in the stage script, he used CreateEnemyFromFile together with common data to make the boss file.
But for the location to spawn the enemy, he used common data too instead of simply writing two variables to store this location in.
Are there any benefits when using common data?