skylib_fluffos_v3/
skylib_fluffos_v3/bin/
skylib_fluffos_v3/bin/db/
skylib_fluffos_v3/fluffos-2.9-ds2.04/
skylib_fluffos_v3/fluffos-2.9-ds2.04/ChangeLog.old/
skylib_fluffos_v3/fluffos-2.9-ds2.04/Win32/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/simuls/
skylib_fluffos_v3/fluffos-2.9-ds2.04/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/clone/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/command/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/data/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/etc/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/master/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/log/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/compiler/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/efuns/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/operators/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/u/
skylib_fluffos_v3/fluffos-2.9-ds2.04/tmp/
skylib_fluffos_v3/fluffos-2.9-ds2.04/windows/
skylib_fluffos_v3/mudlib/
skylib_fluffos_v3/mudlib/cmds/
skylib_fluffos_v3/mudlib/cmds/admin/
skylib_fluffos_v3/mudlib/cmds/guild-race/
skylib_fluffos_v3/mudlib/cmds/living/broken/
skylib_fluffos_v3/mudlib/cmds/player/group_cmds/
skylib_fluffos_v3/mudlib/cmds/playtester/
skylib_fluffos_v3/mudlib/d/admin/
skylib_fluffos_v3/mudlib/d/admin/room/
skylib_fluffos_v3/mudlib/d/admin/room/we_care/
skylib_fluffos_v3/mudlib/d/admin/save/
skylib_fluffos_v3/mudlib/d/admin/text/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/buildings/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/map/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/roads/
skylib_fluffos_v3/mudlib/d/learning/chars/
skylib_fluffos_v3/mudlib/d/learning/functions/
skylib_fluffos_v3/mudlib/d/learning/handlers/
skylib_fluffos_v3/mudlib/d/learning/help_topics/
skylib_fluffos_v3/mudlib/d/learning/help_topics/npcs/
skylib_fluffos_v3/mudlib/d/learning/help_topics/objects/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/RCS/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/crowd/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/situations/
skylib_fluffos_v3/mudlib/d/learning/save/
skylib_fluffos_v3/mudlib/d/learning/school/
skylib_fluffos_v3/mudlib/d/learning/school/add_sc/
skylib_fluffos_v3/mudlib/d/learning/school/characters/
skylib_fluffos_v3/mudlib/d/learning/school/general/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/basic_commands/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/edtutor/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/unix_tutor/
skylib_fluffos_v3/mudlib/d/learning/school/items/
skylib_fluffos_v3/mudlib/d/learning/school/npc_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/room_basic/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/situations/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/terrain_tutor/
skylib_fluffos_v3/mudlib/d/learning/text/
skylib_fluffos_v3/mudlib/d/liaison/
skylib_fluffos_v3/mudlib/d/mudlib/
skylib_fluffos_v3/mudlib/d/mudlib/changes/
skylib_fluffos_v3/mudlib/d/playtesters/
skylib_fluffos_v3/mudlib/d/playtesters/effects/
skylib_fluffos_v3/mudlib/d/playtesters/handlers/
skylib_fluffos_v3/mudlib/d/playtesters/items/
skylib_fluffos_v3/mudlib/d/sage/
skylib_fluffos_v3/mudlib/doc/
skylib_fluffos_v3/mudlib/doc/creator/
skylib_fluffos_v3/mudlib/doc/driver/
skylib_fluffos_v3/mudlib/doc/driver/efuns/arrays/
skylib_fluffos_v3/mudlib/doc/driver/efuns/buffers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/calls/
skylib_fluffos_v3/mudlib/doc/driver/efuns/compile/
skylib_fluffos_v3/mudlib/doc/driver/efuns/filesystem/
skylib_fluffos_v3/mudlib/doc/driver/efuns/floats/
skylib_fluffos_v3/mudlib/doc/driver/efuns/functions/
skylib_fluffos_v3/mudlib/doc/driver/efuns/general/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mappings/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mixed/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mudlib/
skylib_fluffos_v3/mudlib/doc/driver/efuns/numbers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/parsing/
skylib_fluffos_v3/mudlib/doc/login/
skylib_fluffos_v3/mudlib/doc/lpc/basic_manual/
skylib_fluffos_v3/mudlib/doc/lpc/intermediate/
skylib_fluffos_v3/mudlib/doc/new/add_command/
skylib_fluffos_v3/mudlib/doc/new/events/
skylib_fluffos_v3/mudlib/doc/new/handlers/
skylib_fluffos_v3/mudlib/doc/new/living/race/
skylib_fluffos_v3/mudlib/doc/new/living/spells/
skylib_fluffos_v3/mudlib/doc/new/object/
skylib_fluffos_v3/mudlib/doc/new/player/
skylib_fluffos_v3/mudlib/doc/new/room/guild/
skylib_fluffos_v3/mudlib/doc/new/room/outside/
skylib_fluffos_v3/mudlib/doc/new/room/storeroom/
skylib_fluffos_v3/mudlib/doc/object/
skylib_fluffos_v3/mudlib/doc/playtesters/
skylib_fluffos_v3/mudlib/doc/policy/
skylib_fluffos_v3/mudlib/doc/weapons/
skylib_fluffos_v3/mudlib/global/
skylib_fluffos_v3/mudlib/global/creator/
skylib_fluffos_v3/mudlib/handlers/
skylib_fluffos_v3/mudlib/include/casino/
skylib_fluffos_v3/mudlib/include/cmds/
skylib_fluffos_v3/mudlib/include/effects/
skylib_fluffos_v3/mudlib/include/npc/
skylib_fluffos_v3/mudlib/include/room/
skylib_fluffos_v3/mudlib/include/shops/
skylib_fluffos_v3/mudlib/net/daemon/
skylib_fluffos_v3/mudlib/net/daemon/chars/
skylib_fluffos_v3/mudlib/net/inherit/
skylib_fluffos_v3/mudlib/net/obj/
skylib_fluffos_v3/mudlib/net/obj/BACKUPS/
skylib_fluffos_v3/mudlib/obj/amulets/
skylib_fluffos_v3/mudlib/obj/armours/plate/
skylib_fluffos_v3/mudlib/obj/b_day/
skylib_fluffos_v3/mudlib/obj/clothes/transport/horse/
skylib_fluffos_v3/mudlib/obj/faith/symbols/
skylib_fluffos_v3/mudlib/obj/fungi/
skylib_fluffos_v3/mudlib/obj/gatherables/
skylib_fluffos_v3/mudlib/obj/instruments/
skylib_fluffos_v3/mudlib/obj/media/
skylib_fluffos_v3/mudlib/obj/misc/player_shop/
skylib_fluffos_v3/mudlib/obj/monster/godmother/
skylib_fluffos_v3/mudlib/obj/monster/transport/
skylib_fluffos_v3/mudlib/obj/rings/
skylib_fluffos_v3/mudlib/obj/scabbards/
skylib_fluffos_v3/mudlib/obj/spells/
skylib_fluffos_v3/mudlib/obj/stationery/
skylib_fluffos_v3/mudlib/obj/stationery/envelopes/
skylib_fluffos_v3/mudlib/obj/toys/
skylib_fluffos_v3/mudlib/obj/vessels/
skylib_fluffos_v3/mudlib/obj/weapons/axes/
skylib_fluffos_v3/mudlib/obj/weapons/chains/
skylib_fluffos_v3/mudlib/obj/weapons/maces/BACKUPS/
skylib_fluffos_v3/mudlib/save/autodoc/
skylib_fluffos_v3/mudlib/save/book_handler/
skylib_fluffos_v3/mudlib/save/books/history/calarien/
skylib_fluffos_v3/mudlib/save/mail/
skylib_fluffos_v3/mudlib/save/new_soul/data/
skylib_fluffos_v3/mudlib/save/parcels/
skylib_fluffos_v3/mudlib/save/playerinfo/
skylib_fluffos_v3/mudlib/save/players/d/
skylib_fluffos_v3/mudlib/save/players/s/
skylib_fluffos_v3/mudlib/save/random_names/
skylib_fluffos_v3/mudlib/save/random_names/data/
skylib_fluffos_v3/mudlib/save/terrains/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_desert/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_grassy_field/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_mountain/
skylib_fluffos_v3/mudlib/save/todo_lists/
skylib_fluffos_v3/mudlib/secure/
skylib_fluffos_v3/mudlib/secure/cmds/admin/
skylib_fluffos_v3/mudlib/secure/cmds/lord/
skylib_fluffos_v3/mudlib/secure/config/
skylib_fluffos_v3/mudlib/secure/handlers/autodoc/
skylib_fluffos_v3/mudlib/secure/handlers/intermud/
skylib_fluffos_v3/mudlib/secure/include/global/
skylib_fluffos_v3/mudlib/secure/save/
skylib_fluffos_v3/mudlib/secure/save/handlers/
skylib_fluffos_v3/mudlib/secure/std/
skylib_fluffos_v3/mudlib/secure/std/classes/
skylib_fluffos_v3/mudlib/secure/std/modules/
skylib_fluffos_v3/mudlib/std/creator/
skylib_fluffos_v3/mudlib/std/dom/
skylib_fluffos_v3/mudlib/std/effects/
skylib_fluffos_v3/mudlib/std/effects/external/
skylib_fluffos_v3/mudlib/std/effects/fighting/
skylib_fluffos_v3/mudlib/std/effects/magic/
skylib_fluffos_v3/mudlib/std/effects/magic/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/other/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/priest/
skylib_fluffos_v3/mudlib/std/effects/room/
skylib_fluffos_v3/mudlib/std/environ/
skylib_fluffos_v3/mudlib/std/guilds/
skylib_fluffos_v3/mudlib/std/guilds/old/
skylib_fluffos_v3/mudlib/std/languages/
skylib_fluffos_v3/mudlib/std/liquids/
skylib_fluffos_v3/mudlib/std/npc/
skylib_fluffos_v3/mudlib/std/npc/goals/
skylib_fluffos_v3/mudlib/std/npc/goals/basic/
skylib_fluffos_v3/mudlib/std/npc/goals/misc/
skylib_fluffos_v3/mudlib/std/npc/plans/
skylib_fluffos_v3/mudlib/std/npc/plans/basic/
skylib_fluffos_v3/mudlib/std/npc/types/
skylib_fluffos_v3/mudlib/std/npc/types/helper/
skylib_fluffos_v3/mudlib/std/npcs/
skylib_fluffos_v3/mudlib/std/outsides/
skylib_fluffos_v3/mudlib/std/races/shadows/
skylib_fluffos_v3/mudlib/std/room/basic/BACKUPS/
skylib_fluffos_v3/mudlib/std/room/basic/topography/
skylib_fluffos_v3/mudlib/std/room/controller/
skylib_fluffos_v3/mudlib/std/room/inherit/topography/
skylib_fluffos_v3/mudlib/std/room/topography/area/
skylib_fluffos_v3/mudlib/std/room/topography/iroom/
skylib_fluffos_v3/mudlib/std/room/topography/milestone/
skylib_fluffos_v3/mudlib/std/shadows/curses/
skylib_fluffos_v3/mudlib/std/shadows/disease/
skylib_fluffos_v3/mudlib/std/shadows/fighting/
skylib_fluffos_v3/mudlib/std/shadows/healing/
skylib_fluffos_v3/mudlib/std/shadows/magic/
skylib_fluffos_v3/mudlib/std/shadows/poison/
skylib_fluffos_v3/mudlib/std/shadows/room/
skylib_fluffos_v3/mudlib/std/shops/controllers/
skylib_fluffos_v3/mudlib/std/shops/objs/
skylib_fluffos_v3/mudlib/std/shops/player_shop/
skylib_fluffos_v3/mudlib/std/socket/
skylib_fluffos_v3/mudlib/std/soul/d/
skylib_fluffos_v3/mudlib/std/soul/e/
skylib_fluffos_v3/mudlib/std/soul/i/
skylib_fluffos_v3/mudlib/std/soul/j/
skylib_fluffos_v3/mudlib/std/soul/k/
skylib_fluffos_v3/mudlib/std/soul/l/
skylib_fluffos_v3/mudlib/std/soul/n/
skylib_fluffos_v3/mudlib/std/soul/o/
skylib_fluffos_v3/mudlib/std/soul/q/
skylib_fluffos_v3/mudlib/std/soul/r/
skylib_fluffos_v3/mudlib/std/soul/u/
skylib_fluffos_v3/mudlib/std/soul/v/
skylib_fluffos_v3/mudlib/std/soul/y/
skylib_fluffos_v3/mudlib/std/soul/z/
skylib_fluffos_v3/mudlib/std/stationery/
skylib_fluffos_v3/mudlib/w/
skylib_fluffos_v3/mudlib/w/default/
skylib_fluffos_v3/mudlib/w/default/armour/
skylib_fluffos_v3/mudlib/w/default/clothes/
skylib_fluffos_v3/mudlib/w/default/item/
skylib_fluffos_v3/mudlib/w/default/npc/
skylib_fluffos_v3/mudlib/w/default/room/
skylib_fluffos_v3/mudlib/w/default/weapon/
skylib_fluffos_v3/mudlib/www/
skylib_fluffos_v3/mudlib/www/java/
skylib_fluffos_v3/mudlib/www/secure/
skylib_fluffos_v3/mudlib/www/secure/lpc/advanced/
skylib_fluffos_v3/mudlib/www/secure/lpc/intermediate/
skylib_fluffos_v3/win32/
<h3>Chapter 8: The data type &quot;object&quot;</h3>
<p><strong>Review</strong></p>
<p>
You should now be able to do anything so long as
you stick to calling functions within your
own object. You should also know, that at the bare
minimum you can get the create() (or reset()) function in your
object called to start just by loading it
into memory, and that your reset() function
will be called every now and then so that you may write the
code necessary to refresh your room. Note that neither
of these functions MUST be in your object.
The driver checks to see if the function exists
in your object first. If it does not, then it does not
bother. You are also acquainted with the data types
void, int, and string.
</p>
<hr size="1">
<p><strong>Objects as data types</strong></p>
<p>
In this chapter you will be acquainted with a more
complex data type, object. An object variable
points to a real object loaded into the driver's
memory. You declare it in the same manner as other data types:
<blockquote>
object ob;
</blockquote>
</p>
<p>
It differs in that you cannot use +, -, +=, -=, *,
or / (what would it mean to divide a monster
by another monster?). And since efuns like say()
and write() only want strings or ints, you cannot write() or
say() them (again, what would it mean to say a monster?).
But you can use them with some other of the most
important efuns on any LPMud.
</p>
<hr size="1">
<p><strong>The efun: this_object()</strong></p>
<p>
This is an efun which returns an object in which
the function being executed exists. In other
words, in a file, this_object() refers to the object your
file is in whether the file gets cloned itself or
inherted by another file. It is often useful
when you are writing a file which is getting inherited
by another file. Say you are writing your own living.c
which gets inherited by user.c and monster.c,
but never used alone. You want to log the
function set_level() it is a player's level being set (but you
do not care if it is a monster.
</p>
<p>
You might do this:
<pre>
void set_level( int x ) {
    if( this_object()-&gt;is_player() )
        log_file(&quot;levels&quot;, &quot;foo\n&quot;);
    level = x;
}
</pre>
</p>
<p>
Since is_player() is not defined in living.c or anything
it inherits, just saying if( is_player() ) will
result in an error since the driver does not
find that function in your file or anything it inherits.
this_object() allows you to access functions which
may or may not be present in any final products
because your file is inherited by others without
resulting in an error.
</p>
<hr size="1">
<p><strong>Calling functions in other objects</strong></p>
<p>
This of course introduces us to the most important
characteristic of the object data type. It
allows us to access functions in other objects.
</p>
<p>
In previous examples you have been able to find out
about a player's level, reduce the money they
have, and how much hp they have. Calls to
functions in other objects may be done in two ways:
<pre>
object-&gt;function( parameters )
call_other( object, &quot;function&quot;, parameters );
</pre>
</p>
<p>
Example:
<pre>
this_player()-&gt;add_money(&quot;silver&quot;, -5 );
call_other( this_player(), &quot;add_money&quot;, &quot;silver&quot;, -5 );
</pre>
</p>
<p>
In some (very loose sense), the game is just a chain
reaction of function calls initiated by player
commands. When a player initiates a chain of function
calls, that player is the object which is returned by the
efun this_player(). So, since this_player() can change depending
on who initiated the sequence of events, you want
to be very careful as to where you place calls
to functions in this_player(). The most common place
you do this is through the last important lfun (we have mentioned
create() and reset()) init().
</p>
<hr size="1">
<p><strong>The lfun: init()</strong></p>
<p>
Any time a living thing encounters an object (enters
a new room, or enters the same room as a certain
other object), init() is called in all of the
objects the living being newly encounters. It is at this point
that you can add commands the player can issue in
order to act.
</p>
<p>
Here is a sample init() function in a flower.
<pre>
void init() {
    ::init();
    add_action(&quot;smell_flower&quot;, &quot;smell&quot; );
}
</pre>
</p>
<p>
int smell_flower(). So you should have smell_flower() look like this:
<pre>
1 int smell_flower( string str ); /* action functions are type int */
2
3 int smell_flower( string str ) {
4     if( str != &quot;flower&quot;) return 0; /* it is not the flower being smelled */
5     write(&quot;You sniff the flower.\n&quot;);
6     say( (string)this_player()-&gt;query_cap_name()+&quot; smells the flower.\n&quot; );
7     this_player()-&gt;add_hp( random( 5 ) );
8     return 1;
9 }
</pre>
</p>
<p>
In line 1, we have our function declared.
</p>
<p>
In line 3, smell_flower() begins. str becomes whatever
comes after the players command (not including
the first white space).
</p>
<p>
In line 4, it checks to see if the player had typed
&quot;smell flower&quot;. If the player had
typed &quot;smell cheese&quot;, then str would be &quot;cheese&quot;.
If it is not in fact &quot;flower&quot; which
is being smelled, then 0 is returned, letting
the driver know that this was not the function which should
have been called. If in fact the player had a piece
of cheese as well which had a smell command
to it, the driver would then call the function for
smelling in that object. The driver will keep calling all functions
tied to smell commands until one of them returns
1. If they all return 0, then the player sees
&quot;What?&quot;
</p>
<p>
In line 5, the efun write() is called. write() prints
the string which is passed to it to this_player().
So whoever typed the command here sees &quot;You
sniff the flower.&quot;
</p>
<p>
In line 6, the efun say() is called. say() prints
the string which is doing the sniffing, we
have to call the query_cap_name() function in
this_player(). That way if the player is invis, it will say
&quot;Someone&quot; (or something like that), and
it will also be properly capitalized.
</p>
<p>
In line 7, we call the add_hp() function in the this_player()
object, since we want to do a little healing
for the sniff (Note: do not code this object
on your mud, whoever balances your mud will shoot you).
</p>
<p>
In line 8, we return control of the game to the driver,
returning 1 to let it know that this was in
fact the right function to call.
</p>
<hr size="1">
<p><strong>Adding objects to your rooms</strong></p>
<p>
And now, using the data type object, you can add
monsters to your rooms:
<pre>
void create() {
    ::create();
    set_property(&quot;light&quot;, 3 );
    set(&quot;short&quot;, &quot;Krasna Square&quot;);
    set(&quot;long&quot;, &quot;Welcome to the Central Square of the town of Praxis.\n&quot;);
    set_exits( ({ &quot;d/standard/hall&quot; }), ({ &quot;east&quot; }) );
}

void reset() {
    object ob;
    ::reset();
    if( present(&quot;guard&quot;) ) return; /* Do not want to add a guard if */
    ob = new(&quot;/std/monster&quot;);      /* one is already here */
    ob-&gt;set_name(&quot;guard&quot;);
    ob-&gt;set(&quot;id&quot;, ({ &quot;guard&quot;, &quot;town guard&quot; }) );
    ob-&gt;set(&quot;short&quot;, &quot;Town guard&quot;);
    ob-&gt;set(&quot;long&quot;, &quot;He guards Praxis from nothingness.\n&quot;);
    ob-&gt;set_gender(&quot;male&quot;);
    ob-&gt;set_race(&quot;human&quot;);
    ob-&gt;set_level(10);
    ob-&gt;set_alignment(200);
    ob-&gt;set_humanoid();
    ob-&gt;set_hp(150);
    ob-&gt;set_wielding_limbs( ({ &quot;right hand&quot;, &quot;left hand&quot; }) );
    ob-&gt;move(this_object());
}
</pre>
</p>
<p>
Now, this will be wildly different on most muds.
Some, as noted before, in that object so you
have a uniquely configured monster object. The last
act in native muds is to call move() in the monster object to
move it to this room (this_object()). In compat
muds, you call the efun move_object() which
takes two parameters, the object to be moved, and the object
into which it is being moved.
</p>
<hr size="1">
<p><strong>Chapter Summary</strong></p>
<p>
At this point, you now have enough knowledge to code
some really nice stuff. Of course, as I have
been stressing all along, you really need to
read the documents on building for your mud, as they detail which
functions exist in which types of objects for you
to call. No matter what your knowledge of
the mudlib is, you have enough know-how to give
a player extra things to do like sniffing flowers or glue or whatever.
At this point you should get busy coding stuff. But
the moment things even look to become tedious,
that means it is time for you to move to the
next level and do more. Right, now code yourself a small area.
</p>
<p>
Make extensive use of the special functions coded in your mud's room.c (search
the docs for obscure ones no one else seems to use). Add lots o' neat actions.
Create weapons which have magic powers which gradually fade away. All of this
you should be able to do now. Once this becomes routine for you, it will be
time to move on to intermediate stuff. Note that few people actually get to
the intermediate stuff. If you have played at all, you notice there are few
areas on the mud which do what I just told you you should be able to do. It
is not because it is hard, but because there is a lot of arrogance out there
on the part of people who have gotten beyond this point, and very little communicating
of that knowledge. The trick is to push yourself and think of something you
want to do that is impossible. If you ask someone in the know how to do X, and
they say that is impossible, find out yourself how to code it by experimenting.
</p>