<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>Turles' site</title>
        <link>http://www.byond.com/members/Turles</link>
        <description></description>
        <lastBuildDate>Fri, 10 Feb 2012 18:38:12 +0000</lastBuildDate>
        <language>en-us</language>
    
                <item>
            <title>Macros</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155465</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155465</guid>
            <pubDate>Tue, 28 Jun 2011 20:03:18 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155465#comments</comments>
            
            <description>When I'm editing the macro list in interface, is there a way that i can just call a proc instead of calling a verb that calls a proc?&lt;br&gt;
&lt;br&gt;
Thanks.</description>
        </item>
                <item>
            <title>Overlay Image Correspond to Direction</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155518</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155518</guid>
            <pubDate>Sun, 12 Jun 2011 13:54:55 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155518#comments</comments>
            
            <description>If i was making an object that used overlay images for the front and back of it, how would i get the overlays to change locations when the object changes directions?&lt;br&gt;
&lt;br&gt;
For example, in this, how can i get the boats front and back overlays to shift when the boat changes direction?&lt;br&gt;
&lt;br&gt;
Do i have to delete and remake the overlays every time the boat moves or something?&lt;br&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;
obj/Boat&lt;br&gt;    icon = &lt;span class=&quot;dmstring&quot;&gt;'Boat.dmi'&lt;/span&gt;&lt;br&gt;    icon_state = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Middle&amp;quot;&lt;/span&gt;&lt;br&gt;    New()&lt;br&gt;        overlays += image(&lt;span class=&quot;dmstring&quot;&gt;'Boat.dmi'&lt;/span&gt;,icon_state = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Front&amp;quot;&lt;/span&gt;, pixel_x = 64)&lt;br&gt;        overlays += image(&lt;span class=&quot;dmstring&quot;&gt;'Boat.dmi'&lt;/span&gt;,icon_state = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Back&amp;quot;&lt;/span&gt;, pixel_x = -64)&lt;br&gt;        Test()&lt;br&gt;    &lt;span class=&quot;dmkeyword&quot;&gt;proc&lt;/span&gt;&lt;br&gt;        Test()&lt;br&gt;            walk_towards(src,locate(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Destination&amp;quot;&lt;/span&gt;),5)
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;</description>
        </item>
                <item>
            <title>Icon Quality Loss</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155558</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155558</guid>
            <pubDate>Thu, 26 May 2011 13:56:54 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155558#comments</comments>
            
            <description>The problem is when I'm in view of a house icon, my player gets blurry. Now if i change the icon from a detailed icon i got from the art society, to just a square block of color, there is no quality loss or blurriness. Is this because the colors in the detailed icon aren't native to Byond's or something, or is it on my side?</description>
        </item>
                <item>
            <title>Guard dog</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=139172</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=139172</guid>
            <pubDate>Tue, 24 May 2011 12:08:23 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=139172#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;
mob/Dog&lt;br&gt;    &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/Leash&lt;br&gt;    icon = &lt;span class=&quot;dmstring&quot;&gt;'Dog.dmi'&lt;/span&gt;&lt;br&gt;    New()&lt;br&gt;        ..()&lt;br&gt;        Leash = src.loc&lt;br&gt;        Chase()&lt;br&gt;    Bump(atom/movable/A)&lt;br&gt;        ..()&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(istype(A, /mob/Player)) step(A,src.dir)&lt;br&gt;    &lt;span class=&quot;dmkeyword&quot;&gt;proc&lt;/span&gt;&lt;br&gt;        Chase()&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/mob/Player/H &lt;span class=&quot;dmkeyword&quot;&gt;in&lt;/span&gt; range(5,Leash))&lt;br&gt;                H &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Bark&amp;quot;&lt;/span&gt;&lt;br&gt;                step_towards(src, H)&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(!H) &lt;span class=&quot;dmcomment&quot;&gt;// This doesn't work&lt;/span&gt;&lt;br&gt;                    step_towards(src, Leash)&lt;br&gt;            spawn(3) Chase()
&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 dog is suppose to chase away anyone within view of the location he was created. That works but i can't get him to go back to his original point after he chases people away.</description>
        </item>
                <item>
            <title>Name Filter, How Come This Doesnt Work?</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155612</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155612</guid>
            <pubDate>Wed, 04 May 2011 15:31:52 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155612#comments</comments>
            
            <description>&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;var&lt;/span&gt;/bannedcharacters = list(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;2&amp;quot;&lt;/span&gt;) &lt;span class=&quot;dmcomment&quot;&gt;// creates the list and what i want in it&lt;/span&gt;&lt;br&gt;            start &lt;span class=&quot;dmcomment&quot;&gt;// sets a restart point&lt;/span&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/charname = input(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Choose name&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;,key) &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; text &lt;span class=&quot;dmcomment&quot;&gt;// choose name&lt;/span&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;for&lt;/span&gt;(bannedcharacters &lt;span class=&quot;dmkeyword&quot;&gt;in&lt;/span&gt; charname) &lt;span class=&quot;dmcomment&quot;&gt;//look for anything in the bannedcharacters list in their name&lt;/span&gt;&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(bannedcharacters) &lt;span class=&quot;dmcomment&quot;&gt;// if they did find a bannedcharacter in their name&lt;/span&gt;&lt;br&gt;                    &lt;span class=&quot;dmkeyword&quot;&gt;goto&lt;/span&gt; start &lt;span class=&quot;dmcomment&quot;&gt;// go to the restart point&lt;/span&gt;&lt;br&gt;            ... &lt;span class=&quot;dmcomment&quot;&gt;// if they're not redirected then the proc continues and they go here&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
You dont have to actually tell me how to do it, I mostly just want to know why this didnt work? I put my understanding of what i was doing in the notes.&lt;br&gt;
&lt;br&gt;
Thanks</description>
        </item>
                <item>
            <title>Some questions after trying to make a teleport verb</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155616</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155616</guid>
            <pubDate>Tue, 03 May 2011 03:02:32 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155616#comments</comments>
            
            <description>Hey, I've just started learning. I'm practicing by programing random things that come to my head. I have a few questions. The goal here was to make you teleport under a player of your choosing. I got it working but was stumped on a few things.&lt;br&gt;
&lt;br&gt;
My initial attempt was this.&lt;br&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;
            Tele_Plyr()&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/client/P)&lt;br&gt;                    alert(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Are you sure you wanna tel to him?&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Tele?&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Yes&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;No&amp;quot;&lt;/span&gt;)&lt;br&gt;                    &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Yes&amp;quot;&lt;/span&gt;)&lt;br&gt;                        usr.x = P.x; usr.y = P.y-1; usr.z = P.z&lt;br&gt;                    &lt;span class=&quot;dmkeyword&quot;&gt;else&lt;/span&gt;&lt;br&gt;                        usr &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;ok nevermind then&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
it told me that P.x was undefined. I know P is defined and i know x, y, &amp; z are defined by default, so how come when i put them together it gives me an error? I came up with the solution you see below but it didnt work.&lt;br&gt;
&lt;br&gt;
Then I changed &quot;if(P == client)&quot; to if(P.client) and it worked. Im still a little muddy on how == works so i tried something else. Im a little confused though, isnt &quot;==&quot; checking if the two are equal? Why wouldnt it work?&lt;br&gt;
&lt;br&gt;
Edit for random thought: is it because client is a 0 or 1 sum to just check if you are one or not? So == then wouldnt actually be checking anything?&lt;br&gt;
&lt;br&gt;
And i just realized i was using for() wrong too in my first attempt.&lt;br&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;
            Tele_Plyr()&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/list/clientlist&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/mob/P)&lt;br&gt;                    &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(P == client)&lt;br&gt;                        clientlist += P&lt;br&gt;                        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/mob/chosen = input(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Tele to who&amp;quot;&lt;/span&gt;, &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Who&amp;quot;&lt;/span&gt;) &lt;span class=&quot;dmkeyword&quot;&gt;in&lt;/span&gt; clientlist&lt;br&gt;                        alert(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Are you sure you wanna tel to him?&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Tele?&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Yes&amp;quot;&lt;/span&gt;,&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;No&amp;quot;&lt;/span&gt;)&lt;br&gt;                        &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;Yes&amp;quot;&lt;/span&gt;)&lt;br&gt;                            usr.x = chosen.x; usr.y = chosen.y-1; usr.z = chosen.z&lt;br&gt;                        &lt;span class=&quot;dmkeyword&quot;&gt;else&lt;/span&gt;&lt;br&gt;                            usr &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;ok nevermind then&amp;quot;&lt;/span&gt;&lt;br&gt;                    &lt;span class=&quot;dmkeyword&quot;&gt;else&lt;/span&gt;&lt;br&gt;                        &lt;span class=&quot;dmkeyword&quot;&gt;return&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;</description>
        </item>
                <item>
            <title>Where should i start?</title>
            <link>http://www.byond.com/members/Turles?command=view_post&amp;post=155649</link>
            <guid>http://www.byond.com/members/Turles?command=view_post&amp;post=155649</guid>
            <pubDate>Mon, 25 Apr 2011 09:29:15 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Turles?command=view_comments&amp;post=155649#comments</comments>
            
            <description>I tried coding a long time ago, maybe 6 or 7 years ago to be specific, i wasn't very good and i was pretty young so i had a hard time learning the language. I recently got an idea in my head about a game and more and more ideas have been bouncing inside my head about this game. So i want to learn how to make it.&lt;br&gt;
&lt;br&gt;
I see that theres a guide, im going to start reading that, is there anything else you guys can recommend i do? Also is the guide fully comprehensive? I can't imagine 1 guide could explain everything but maybe it can, will it be all i really need?&lt;br&gt;
&lt;br&gt;
Thanks</description>
        </item>
            
    </channel>
</rss>


