<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4185" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: MudProg Variable</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4185</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19037#p19037</link>
   <description>if you can&#039;t get kayles to work try this one. http://www.auricmud.com/snippets/variables.html</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19037#p19037</guid>
   <pubDate>Sun, 4 Oct 2009 09:53:22 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (6Dragons)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19036#p19036</link>
   <description>So, I tossed this in one of my existing projects this morning. And, I&#039;m not real sure what the hell it&#039;s supposed to be doing. At the moment, I don&#039;t really see what the hell I was thinking at the time, or how I thought this would work. Or even how I got it to work. The project I wrote this on has long since died out, and I don&#039;t have a copy of any of it anymore to tell. So, I&#039;ll keep playing with it, but I think the snippet might need an update and that little bit removed because I don&#039;t think </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19036#p19036</guid>
   <pubDate>Sun, 4 Oct 2009 03:54:39 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (InfiniteAxis)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19033#p19033</link>
   <description>Life got hectic for a bit on my end. So I still haven&#039;t had a chance to delve into this further. And it&#039;s looking like I won&#039;t get the chance to until Monday being that tomorrow is my first wedding anniversary. Odd that it&#039;s been a year already... Anyway, I&#039;ll poke at this on Monday if everything goes well tonight.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19033#p19033</guid>
   <pubDate>Sat, 3 Oct 2009 16:04:57 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (InfiniteAxis)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19031#p19031</link>
   <description>btw this still does not work, I am going to post the function to show you what I got. [code] int mprog_do_ifcheck( char *ifcheck, CHAR_DATA *mob, CHAR_DATA *actor, OBJ_DATA *obj, void *vo, CHAR_DATA *rndm ) { char buf[MAX_STRING_LENGTH]; char opr[MAX_INPUT_LENGTH]; char *chck, *cvar; char *argv[MAX_IF_ARGS]; char *rval = &amp;quot;&amp;quot;; char *q, *p = buf; int argc = 0; CHAR_DATA *chkchar = NULL; OBJ_DATA *chkobj = NULL; int lhsvl, rhsvl = 0; </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19031#p19031</guid>
   <pubDate>Sat, 3 Oct 2009 13:45:11 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19030#p19030</link>
   <description>how did the or&#039;s come in?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19030#p19030</guid>
   <pubDate>Sat, 3 Oct 2009 13:36:14 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19026#p19026</link>
   <description>Yes, if isnpc($n) and whatever still works, as long as you leave the old syntax stuff in place, which is why that else block is there after the  if( ifcheck[0] == &#039;$&#039; ) block. Here&#039;s my one_argument3 function. [code]// this is a copy of one_argument2 from interp.c, but checking for a &#039;.&#039; instead of a &#039;-&#039; char *one_argument3( char *argument, char *arg_first ) { char cEnd; short count; count = 0; while( isspace( *argument ) ) argument++; cEnd = &#039; &#039;; if( *</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19026#p19026</guid>
   <pubDate>Sat, 3 Oct 2009 01:40:03 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (Andril)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19016#p19016</link>
   <description>Two things does the old style of ifchecks work? and if so can you post your one_argument3?  </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19016#p19016</guid>
   <pubDate>Fri, 2 Oct 2009 19:51:15 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19015#p19015</link>
   <description>I put this into my SWR and it works great. I&#039;ve also expanded it a bunch. If I remember correctly, the system was designed to use the setvar and say commands within the progs, not the ifcheck system. I think you need to modify mprog_do_ifcheck to support the new syntax because it was designed to use the if check(target) style. What I did was added the following at the top of that function: [code]   if( ifcheck[0] == &#039;$&#039; ) { ifcheck = one_argument3( ifcheck, cvar ); // modified ver</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19015#p19015</guid>
   <pubDate>Fri, 2 Oct 2009 19:28:15 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (Andril)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19014#p19014</link>
   <description>nope...</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19014#p19014</guid>
   <pubDate>Fri, 2 Oct 2009 18:24:54 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>MudProg Variable</title>
   <link>https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19010#p19010</link>
   <description>Uh, what&#039;s wrong with using if race($n) == Saiyan? Also, try &amp;quot;saiyan&amp;quot; if it&#039;s saying it in lowercase.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/mudprog-variable-4185/&amp;p=19010#p19010</guid>
   <pubDate>Thu, 1 Oct 2009 20:24:45 CDT</pubDate>
   <category>Smaug Snippets</category>
   <author>nobody@example.com (Zeno)</author>
  </item>
 </channel>
</rss>
