pinky_popo
Member
Yeah, sorry, I'm really new to object-oriented programming, and I'm really only familiar with C and perl, so...
Anyway, what I'm trying to do is make an event-based battle initiator that opens a battle with one of a list of possible enemy troupes. I was thinking about designating a group of system variables as this list of potential battles, putting those variables into an array, and then calling the battle control with a random element from that array.
So here's my specific problem: how do I put those system variables in an array? Then how do I pass a random element to the battle initiator function? Actually...how do I pass anything other than a raw system variable (using the pop-up selection screen in the event editor) to that function?
I don't know if this is even the best way to do what I want, but I'd really like to try to keep it in the event editor so that it's easier for non-scriptors to modify it. That, and I sort of hate the way RGSS seems to work, haha
Any help is really appreciated, thanks!!!
Anyway, what I'm trying to do is make an event-based battle initiator that opens a battle with one of a list of possible enemy troupes. I was thinking about designating a group of system variables as this list of potential battles, putting those variables into an array, and then calling the battle control with a random element from that array.
So here's my specific problem: how do I put those system variables in an array? Then how do I pass a random element to the battle initiator function? Actually...how do I pass anything other than a raw system variable (using the pop-up selection screen in the event editor) to that function?
I don't know if this is even the best way to do what I want, but I'd really like to try to keep it in the event editor so that it's easier for non-scriptors to modify it. That, and I sort of hate the way RGSS seems to work, haha
Any help is really appreciated, thanks!!!