Well, I'm working with my first project and there´s a something that I can't understand completely which are the differences between:
- Goto
- DoEvent / DoNpcEvent
- Functions
Well. I know Goto must be avoided if possible, but I find it really similar to DoEvent / DoNpcEvent statements. In addition, Functions works pretty similar to DoEvent / DoNpcEvent statements (in both cases, you are creating a subroutine). So... I know that they are 3 different things for differents purposes, but at this time it's a bit blurry for me to see the limit between them.
Could someone explain me the differences and tell me wich one is the best option in each case? At least a little example to clarify mi mind.
I've looked for another support topics and also have checked Wiki and manual, but it's still confusing for me.
Question
Brainstorming
Well, I'm working with my first project and there´s a something that I can't understand completely which are the differences between:
- Goto
- DoEvent / DoNpcEvent
- Functions
Well. I know Goto must be avoided if possible, but I find it really similar to DoEvent / DoNpcEvent statements. In addition, Functions works pretty similar to DoEvent / DoNpcEvent statements (in both cases, you are creating a subroutine). So... I know that they are 3 different things for differents purposes, but at this time it's a bit blurry for me to see the limit between them.
Could someone explain me the differences and tell me wich one is the best option in each case? At least a little example to clarify mi mind.
I've looked for another support topics and also have checked Wiki and manual, but it's still confusing for me.
Thanx a lot and sorry for my bad english!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.