RMXP has a really really good help file, it will explain 99% of any basic issues you have including about scripting.
There is no need to ask simple questions such as "how do I make events" and such here, if you haven't already looked in the helpfile. It should be your first step to solving your problem every time.
Too many stickies in this forum; I've added this into the FAQ before the contents page.