I'm coding a command for DG Scripts that will let mob/obj/rooms set
certain player variables, but I've run into a problem.
struct mplayerset {
char *keyword;
(???) modify;
.....
} mplayersets[] = {
{ "olc" , ch->player_specials->saved.olc_zone },
{ "\n" , NULL }
};
Ok, that's a fake example, but my problem is that I don't know what to
define modify as to have it hold the pointer to various variables. They
are typically going to be integers for on/off things but not always. Is
this possible, or will I end up using a switch like perform_set does?
[-------------------------------------------]
Tony Robbins, <tonyr@nwpaclink.com>
LakeView Technologies, Inc.
[-------------------------------------------]
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST