Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lharc

Pages: [1]
1
Thank you soo much for your informative respond. Gamebook is the name for these types of games/books.
CYS seems like a wonderful site, and I need to read through a few of those books.
Mixing the concept with a mud seems very interesting, need to let that idea brew a little more  :P

2
I'm not sure what the name for the type of book is but here is an example:
http://fightingfantasy.com/index.php?option=com_content&view=article&id=7&Itemid=37

I enjoyed these quite much, because you could reread them and explore, and ofcourse try the main objective to reach the ending(s).

3
Suggestions & Ideas / Re: Blind Players
« on: October 18, 2013, 12:29:59 pm »
rynald: Thats great!
I would be glad if you could finish it into production quality, since I cant continue any further with your patch.

Regarding your question.
I've based the toggles depending on the user-interface.
The other option would be user-condition toggles like blind, dyslexia, deaf, etc. But that doesn't make sense (in my opinion).

The toggles would give hints for the code on how to produce/output text the best way for the end-user equipment. Though I have no experience no how a braille display works.

Doing my initial work I didn't figured out what the PRF_BRIEF toggle is. So I ignored it ;) ... maybe there is some redundant work if that toggle is already supposed to produce leaner text?

Thanks for giving my patch some love!

love,
lharc

4
Suggestions & Ideas / Re: Blind Players
« on: October 06, 2013, 02:15:10 am »
I prefer to address any user inclusively by using 'our' rather than 'they'.

If I may think about our current userbase and future userbase more generally in mind, I see following categorization:
* a user who uses a braille display.
* a user who uses an audio converter.
* a user who whishes for a easer/compact english.
* a user who has seen the same room thousand times and whishes more silent output unless something extraordinarly happens in the environment.

Anyway, looking at the tbamud I've added a BRAILLE and AUDIO option to preferences. For now the option is toggable, and survives a server-restart  :P
Patch:
Code: [Select]
Date:   Sun Oct 6 09:02:09 2013 +0200

    braille/audio toggle

diff --git a/src/act.h b/src/act.h
index 7ec7f94..dd70496 100644
--- a/src/act.h
+++ b/src/act.h
@@ -226,6 +226,8 @@ ACMD(do_gen_tog);
 #define SCMD_WIMPY       30
 #define SCMD_PAGELENGTH  31
 #define SCMD_SCREENWIDTH 32
+#define SCMD_AUDIO       33
+#define SCMD_BRAILLE     34
 
 /* do_quit */
 ACMD(do_quit);
diff --git a/src/act.informative.c b/src/act.informative.c
index 6a4c15d..2da81cc 100644
--- a/src/act.informative.c
+++ b/src/act.informative.c
@@ -1843,6 +1843,12 @@ ACMD(do_toggle)
     {"compact", PRF_COMPACT, 0,
     "Compact mode off.\r\n",
     "Compact mode on.\r\n"},
+    {"audio", PRF_AUDIO, 0,
+    "Audio mode off.\r\n",
+    "Audio mode on.\r\n"},
+    {"braille", PRF_BRAILLE, 0,
+    "Braille mode off.\r\n",
+    "Braille mode on.\r\n"},
     {"notell", PRF_NOTELL, 0,
     "You can now hear tells.\r\n",
     "You are now deaf to tells.\r\n"},
diff --git a/src/act.other.c b/src/act.other.c
index a579ac0..447498e 100644
--- a/src/act.other.c
+++ b/src/act.other.c
@@ -670,8 +670,9 @@ ACMD(do_gen_tog)
     "Nohassle enabled.\r\n"},
     {"Brief mode off.\r\n",
     "Brief mode on.\r\n"},
-    {"Compact mode off.\r\n",
-    "Compact mode on.\r\n"},
+    {"Compact mode off.\r\n", "Compact mode on.\r\n"},
+    {"Braille mode off.\r\n", "Braille mode on.\r\n"},
+    {"Audio mode off.\r\n", "Audio mode on.\r\n"},
     {"You can now hear tells.\r\n",
     "You are now deaf to tells.\r\n"},
     {"You can now hear auctions.\r\n",
@@ -738,6 +739,12 @@ ACMD(do_gen_tog)
   case SCMD_COMPACT:
     result = PRF_TOG_CHK(ch, PRF_COMPACT);
     break;
+  case SCMD_BRAILLE:
+    result = PRF_TOG_CHK(ch, PRF_BRAILLE);
+    break;
+  case SCMD_AUDIO:
+    result = PRF_TOG_CHK(ch, PRF_AUDIO);
+    break;
   case SCMD_NOTELL:
     result = PRF_TOG_CHK(ch, PRF_NOTELL);
     break;
diff --git a/src/interpreter.c b/src/interpreter.c
index 248f7bb..7339357 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -123,6 +123,9 @@ cpp_extern const struct command_info cmd_info[] = {
   { "consider" , "con"     , POS_RESTING , do_consider , 0, 0 },
   { "commands" , "com"     , POS_DEAD    , do_commands , 0, SCMD_COMMANDS },
   { "compact"  , "comp"    , POS_DEAD    , do_gen_tog  , 0, SCMD_COMPACT },
+  { "braille"  , "braille" , POS_DEAD    , do_gen_tog  , 0, SCMD_BRAILLE },
+  { "audio"  ,   "audio"   , POS_DEAD    , do_gen_tog  , 0, SCMD_AUDIO   },
+
   { "copyover" , "copyover", POS_DEAD    , do_copyover , LVL_GRGOD, 0 },
   { "credits"  , "cred"    , POS_DEAD    , do_gen_ps   , 0, SCMD_CREDITS },
 
diff --git a/src/prefedit.c b/src/prefedit.c
index 64cb894..e99c7fb 100644
--- a/src/prefedit.c
+++ b/src/prefedit.c
@@ -243,7 +243,8 @@ static void prefedit_disp_toggles_menu(struct descriptor_data *d)
   send_to_char(d->character, "\r\n"
                              "%sOther Flags\r\n"
                              "%sF%s) No Summon    %s[%s%3s%s]      %sH%s) Brief    %s[%s%3s%s]\r\n"
-                             "%sG%s) No Repeat    %s[%s%3s%s]      %sI%s) Compact  %s[%s%3s%s]\r\n",
+                             "%sG%s) No Repeat    %s[%s%3s%s]      %sI%s) Compact  %s[%s%3s%s]\r\n"
+                             "%sY%s) Audio        %s[%s%3s%s]      %sZ%s) Braille  %s[%s%3s%s]\r\n",
              CBWHT(d->character, C_NRM),
 /* Line 10 - nosummon and brief */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
@@ -252,7 +253,11 @@ static void prefedit_disp_toggles_menu(struct descriptor_data *d)
 /* Line 11 - norepeat and compact */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
              ONOFF(PREFEDIT_FLAGGED(PRF_NOREPEAT)), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
-             CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(PREFEDIT_FLAGGED(PRF_COMPACT)), CCCYN(d->character, C_NRM)
+             CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(PREFEDIT_FLAGGED(PRF_COMPACT)), CCCYN(d->character, C_NRM),
+/* Line 12 - audio and braille */
+             CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
+             ONOFF(PREFEDIT_FLAGGED(PRF_AUDIO   )), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
+             CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(PREFEDIT_FLAGGED(PRF_BRAILLE)), CCCYN(d->character, C_NRM)
              );
 
   /* The bottom section of the toggles menu */
@@ -264,19 +269,19 @@ static void prefedit_disp_toggles_menu(struct descriptor_data *d)
                              "%sP%s) UTF-8        %s[%s%3s%s]      %sR%s) MSP      %s[%s%3s%s]\r\n"
                              "\r\n",
              CBWHT(d->character, C_NRM),
-/* Line 12 - 256 and mxp */
+/* Line 13 - 256 and mxp */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
              ONOFF(d->pProtocol->pVariables[eMSDP_XTERM_256_COLORS]->ValueInt), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
              CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(d->pProtocol->pVariables[eMSDP_MXP]->ValueInt), CCCYN(d->character, C_NRM),
-/* Line 13 - ansi and msdp */
+/* Line 14 - ansi and msdp */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
              ONOFF(d->pProtocol->pVariables[eMSDP_ANSI_COLORS]->ValueInt), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
              CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(d->pProtocol->bMSDP), CCCYN(d->character, C_NRM),
-/* Line 14 - charset and atcp */
+/* Line 15 - charset and atcp */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
              ONOFF(d->pProtocol->bCHARSET), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
              CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(d->pProtocol->bATCP), CCCYN(d->character, C_NRM),
-/* Line 15 - utf-8 and msp */
+/* Line 16 - utf-8 and msp */
              CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM), CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM),
              ONOFF(d->pProtocol->pVariables[eMSDP_UTF_8]->ValueInt), CCCYN(d->character, C_NRM), CBYEL(d->character, C_NRM), CCNRM(d->character, C_NRM),
              CCCYN(d->character, C_NRM), CCYEL(d->character, C_NRM), ONOFF(d->pProtocol->bMSP), CCCYN(d->character, C_NRM)
@@ -624,6 +629,14 @@ void prefedit_parse(struct descriptor_data * d, char *arg)
       case 'I':
         TOGGLE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_COMPACT);
         break;
+      case 'z':
+      case 'Z':
+        TOGGLE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_BRAILLE);
+        break;
+      case 'y':
+      case 'Y':
+        TOGGLE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_AUDIO);
+        break;
         
       case 'j':
       case 'J':
@@ -755,6 +768,12 @@ void prefedit_Restore_Defaults(struct descriptor_data *d)
   /* PRF_COMPACT    - Off */
   if (PREFEDIT_FLAGGED(PRF_COMPACT))
      REMOVE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_COMPACT);
+  /* PRF_AUDIO      - Off */
+  if (PREFEDIT_FLAGGED(PRF_AUDIO))
+     REMOVE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_AUDIO);
+  /* PRF_BRAILLE    - Off */
+  if (PREFEDIT_FLAGGED(PRF_BRAILLE))
+     REMOVE_BIT_AR(PREFEDIT_GET_FLAGS, PRF_BRAILLE);
 
   /* PRF_NOSHOUT       - Off */
   if (PREFEDIT_FLAGGED(PRF_NOSHOUT))
diff --git a/src/structs.h b/src/structs.h
index 758652b..6a9ce0d 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -272,8 +272,10 @@
 #define PRF_AUTOMAP      31   /**< Show map at the side of room descs */
 #define PRF_AUTOKEY      32   /**< Automatically unlock locked doors when opening */
 #define PRF_AUTODOOR     33   /**< Use the next available door */
+#define PRF_AUDIO        34   /**< Text through audio */
+#define PRF_BRAILLE      35   /**< Text through braille display */
 /** Total number of available PRF flags */
-#define NUM_PRF_FLAGS    34
+#define NUM_PRF_FLAGS    36
 
 /* Affect bits: used in char_data.char_specials.saved.affected_by */
 /* WARNING: In the world files, NEVER set the bits marked "R" ("Reserved") */



5
Suggestions & Ideas / hello + patch
« on: July 22, 2013, 02:15:31 am »
Hello!
I'm new to mudding. Thought I'd say hello.

I have a patch below which uses a bit in mob bitvector (bit 20). If enable the mob cant communicate (ie speak etc).
So far it only has effect on the memory attack function.

best regards!
/lharc


Code: [Select]

Date:   Sat Jul 20 10:17:26 2013 +0200

    mob communication flag

diff --git a/src/mobact.c b/src/mobact.c
index 1696cdd..2bb55ca 100644
--- a/src/mobact.c
+++ b/src/mobact.c
@@ -130,7 +130,11 @@ void mobile_activity(void)
             continue;
 
           found = TRUE;
-          act("'Hey!  You're the fiend that attacked me!!!', exclaims $n.", FALSE, ch, 0, 0, TO_ROOM);
+          if(!MOB_FLAGGED(ch, MOB_NOCOMM)){
+              act("'Hey!  You're the fiend that attacked me!!!', exclaims $n.", FALSE, ch, 0, 0, TO_ROOM);
+          }else{
+              act("$n notices you as a fiend.", FALSE, ch, 0, 0, TO_ROOM);
+          }
           hit(ch, vict, TYPE_UNDEFINED);
         }
       }
diff --git a/src/structs.h b/src/structs.h
index 379c393..758652b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -233,8 +233,9 @@
 #define MOB_NOBLIND        17   /**< Mob can't be blinded */
 #define MOB_NOKILL         18   /**< Mob can't be attacked */
 #define MOB_NOTDEADYET     19   /**< (R) Mob being extracted */
+#define MOB_NOCOMM         20   /**< Mob can't communicate */
 
-#define NUM_MOB_FLAGS      19
+#define NUM_MOB_FLAGS      20
 
 /* Preference flags: used by char_data.player_specials.pref */
 #define PRF_BRIEF         0   /**< Room descs won't normally be shown */

Pages: [1]