<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>Eiza Redux's site</title>
        <link>http://www.byond.com/members/EizaRedux</link>
        <description></description>
        <lastBuildDate>Sat, 11 Feb 2012 00:41:58 +0000</lastBuildDate>
        <language>en-us</language>
    
                <item>
            <title>Calling variables with procs</title>
            <link>http://www.byond.com/members/EizaRedux?command=view_post&amp;post=264531</link>
            <guid>http://www.byond.com/members/EizaRedux?command=view_post&amp;post=264531</guid>
            <pubDate>Sat, 03 Oct 2009 02:32:54 +0000</pubDate>
            
            <comments>http://www.byond.com/members/EizaRedux?command=view_comments&amp;post=264531#comments</comments>
            
            <description>&lt;b&gt;Code:&lt;/b&gt;&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
&lt;span class=&quot;dmkeyword&quot;&gt;verb&lt;/span&gt;&lt;br&gt;    ExampleSkillOne(mob/T &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; mob &lt;span class=&quot;dmkeyword&quot;&gt;in&lt;/span&gt; oview(1))  &lt;span class=&quot;dmcomment&quot;&gt;//Skill #1&lt;/span&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/damage = [fancy calculations]      &lt;span class=&quot;dmcomment&quot;&gt;//A variable &amp;quot;damage&amp;quot; that holds the power of this particular skill&lt;/span&gt;&lt;br&gt;        &lt;br&gt;        usr.Attack(T)                           &lt;br&gt;        T.DeadCheck()&lt;br&gt;        &lt;br&gt;    ExampleSkillTwo(mob/T &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; mob &lt;span class=&quot;dmkeyword&quot;&gt;in&lt;/span&gt; oview(1))    &lt;span class=&quot;dmcomment&quot;&gt;//Skill #2&lt;/span&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/damage = [different calculations]   &lt;span class=&quot;dmcomment&quot;&gt;//A variable &amp;quot;damage&amp;quot; for this skill&lt;/span&gt;&lt;br&gt;        &lt;br&gt;        usr.Attack(T)&lt;br&gt;        T.DeadCheck()&lt;br&gt;        &lt;br&gt;&lt;span class=&quot;dmkeyword&quot;&gt;proc&lt;/span&gt;&lt;br&gt;    Attack(mob/T)&lt;br&gt;        &lt;span class=&quot;dmcomment&quot;&gt;//this is where the damage calculation would go&lt;/span&gt;&lt;br&gt;        usr &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;The attack hit &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[T]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; for &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[damage]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; damage.&amp;quot;&lt;/span&gt;&lt;br&gt;        T &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;You were hit by &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[usr]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; for &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[damage]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; damage.&amp;quot;&lt;/span&gt;&lt;br&gt;    &lt;br&gt;    DeadCheck()&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt; (hp &amp;lt;= 0)&lt;br&gt;            view() &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[src]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; has fallen in combat!&amp;quot;&lt;/span&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;del&lt;/span&gt;(src)
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Problem description:&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
The idea is to set a variable &quot;damage&quot; for each skill, and then have the verb call the Attack proc to determine how much damage is done. However, no matter which way I try to make it work, I can't get the Attack proc to recognize the &quot;damage&quot; variable.&lt;br&gt;
&lt;br&gt;
I'm not the greatest coder on BYOND, so there's probably something simple that I'm missing here, but searching the forum and browsing the Blue Book hasn't helped. Any help would be much appreciated.&lt;br&gt;
&lt;br&gt;</description>
        </item>
            
    </channel>
</rss>


