|
I'm running a ROM codebase and this is what I'm wanting to be able to do in my programs:
Basically something like:
if sex $g == 1 say $g is a male!
or
if class $g == 4 mob transfer $g 500
The difference there being the 'g' variable. What I would like something like this to be able to do is in the if checks, take the character who triggered the program and first check him/her against the condition its checking for, and then cycle through their group (if any) and if everyone meets the specific criteria, then continue with the command. With the command, I would like it to be able to basically do the same... affect the character who triggered it plus everyone in his group.
What my question is, for anyone familiar with ROM and the program structure, is there a way to do this within the current way its coded and structured? I could see ways of doing this by basically making copies of all of the checks and commands to account for group (like the 'gtransfer' command), but if possible I would really like to try to make a new character variable that can handle that.
The reason being is that we are going to be implementing a playable storyline, and there seems to be a consensus that being able to group through these quests would be ideal, and since so much of the quests are going to be scripted to where you have to be at a certain point in order to continue, it would be ideal to be able to check for something like '$g' instead of '$n'.
Anyone have any ideas?
|