Ok I want it randomly when you move that an event could occur. The even would be opening up a form. How should I go about this.
I know I could have the randomize function and have it if it gets a variable to open the form, but where should i put this... where they are moving or should I make a new tile attribute then when they are on it it randomly sees if it should open the form. Im thinking that might be the best bet.
I never added a new attribute or anything so if thats how I should do it how do I go about that.
I have been coding a lot of vb but I dont mess with this source much so im not sure how everything works out and all.
Thanks a lot for this help will help me a ton.
Attribs are simple. Though, you'd take up quite alot of space with an attrib, I assume you want this for a puzzle or something, so why not have it call the code if it's a certain moral or something like that?
[EDIT] I just thought about that, better, would be to add a check box onto the properties form, setting whether or not it should happen on the map. Less code, and less hassle.
Im doing it so when you move you have a random chance to get in a battle.
That would be opening a new form.
If its a moral then wouldnt that mean you could get in a battle when your not moving?
I want it so everytime you move it checks the random function and if it lands on a certain number it opens the battle up.
No, you misunderstood. You still have to check if the player is moving, if so, then check the moral, if it's the correct moral, then play out the code, for it to check the randomness.
But, is this for MS, or for homebrew?
Yeah I was thinking that too I was thinking just when they are moving to check then you wold have in door battles so yeah that would work too.
I will have to look into adding a map morale and checking to see if character is moving shouldnt be hard I wouldnt think.
Its ms... I was going to start from scratch but for my needs of walking around and all that ms serves it just fine... im working on a completely new battle system. I more less have it done just have to get it called up at the right time and change aroudn where stuff is saved from how I had it... get it to send packets to server and all that fun stuff.
I suggest you do the check box, that way, you have less work, and it will be easier on you when you map.
well I was messing around and got it done adding a new attribute... im sure its not the easiest and maybe not the best way but it works. I figured that you wouldnt get on a blocked tile to fight anyways.
Your right though it sucks having to add it to every tile you can walk on... well actually it works as I only want some areas you can fight in the tall grass ands tuff so thta works good that way.
I got it to just open it when you walk on it now gotta make it random.
Yay for progress.
Its a pokemon game if you or anyone cared. People wanted it and the others are not progessing just in show and not working on battle i decided too.
Ah, well, you're still going to need the moral/checkbox for caves and such.
Why is that? I just put the attr on tiles where I want it... so caves and all I put it there... and none in towns...
im just working with the random function now... I forget exactly how it works lol
Message me on msn or something, I will explain to you why you will still need it.