<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=User%3AAllen_Kerensky%2FMyriad_Lite%2FNPC_Critter_Goon</id>
		<title>User:Allen Kerensky/Myriad Lite/NPC Critter Goon - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=User%3AAllen_Kerensky%2FMyriad_Lite%2FNPC_Critter_Goon"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Allen_Kerensky/Myriad_Lite/NPC_Critter_Goon&amp;action=history"/>
		<updated>2026-04-25T19:52:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Allen_Kerensky/Myriad_Lite/NPC_Critter_Goon&amp;diff=30382&amp;oldid=prev</id>
		<title>Allen Kerensky: NPC Critter Goon</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Allen_Kerensky/Myriad_Lite/NPC_Critter_Goon&amp;diff=30382&amp;oldid=prev"/>
				<updated>2012-08-12T16:45:28Z</updated>
		
		<summary type="html">&lt;p&gt;NPC Critter Goon&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= NPC Critter Goon =&lt;br /&gt;
== NPC Critter Goon Concepts ==&lt;br /&gt;
The NPC Critter Goon is the first of 3 NPC types for Myriad Lite.&lt;br /&gt;
&lt;br /&gt;
The Critter Goon is a low-power, simple, expendable opponent.&lt;br /&gt;
&lt;br /&gt;
Against low level players a small pack of Critters (or small gang of Goons) should work.&lt;br /&gt;
&lt;br /&gt;
Higher level players would have to clear swarms of these to get at a lieutenant and big boss creature.&lt;br /&gt;
&lt;br /&gt;
You can make Critters/Goons tougher by increasing their attack and defense skills from 1 to 10 each.&lt;br /&gt;
&lt;br /&gt;
You can also make Critters/Goons touch by increasing their Resilience (wounds) to take more damage.&lt;br /&gt;
&lt;br /&gt;
Critters/Goons should only ever have 1 attack dice and 1 defense dice.&lt;br /&gt;
&lt;br /&gt;
Implementing this framework script showed that a LOT more feedback, specifications, or desired library of NPC functions was needed.&lt;br /&gt;
&lt;br /&gt;
This script needs your help to flesh out into a library of useful critters and goons for Medieval, Modern, and Futuristic settings.&lt;br /&gt;
&lt;br /&gt;
== Stance Functions ==&lt;br /&gt;
There are stubs for several possible stances the Critter/Goon could take.&lt;br /&gt;
&lt;br /&gt;
These have not been implemented because they must be fitted by the NPC builder to a specific critter or goon model.&lt;br /&gt;
&lt;br /&gt;
Suggested Stances included: Standing, Kneeling, and laying Prone - 3 common positions a soldier might take in battle.&lt;br /&gt;
&lt;br /&gt;
== Move Functions ==&lt;br /&gt;
There is an included MOVE_WANDER() function.&lt;br /&gt;
&lt;br /&gt;
When used, this will cause the NPC critter/goon to wander from point to point within a given distance of its rez-point.&lt;br /&gt;
&lt;br /&gt;
Stubs are included for many other possible movement modes that can be implemented or interfaced to existing NPC brain scripts&lt;br /&gt;
&lt;br /&gt;
== Attack Functions ==&lt;br /&gt;
Three useful functions included in this NPC script are:&lt;br /&gt;
* ATTACK_RANGED() - fire a Myriad Turret Bullet (does not work with Myriad Bullet)&lt;br /&gt;
* ATTACK_CLOSE_MELEE() - make an armed melee attack using Close Combat skill.&lt;br /&gt;
* ATTACK_CLOSE_UNARMED() - man an unarmed close combat attack&lt;br /&gt;
&lt;br /&gt;
== Defence Functions ==&lt;br /&gt;
Stubs for 3 possible defense functions are included: Defense against ranged attack, defense against armed close combat such as melee, and defense against unarmed close combat.&lt;br /&gt;
&lt;br /&gt;
Implementing these depends on the NPC designer's desired response to these attacks - move to cover? raise shields?&lt;br /&gt;
&lt;br /&gt;
These functions could be triggered from DAMAGE_HIT, DAMAGE_WOUNDED, or DAMAGE_ZZZ as desired by the NPC designer.&lt;br /&gt;
&lt;br /&gt;
== Damage and Death ==&lt;br /&gt;
The NPC Critter Goon includes player-style damage, armor, wounds, and death functions.&lt;br /&gt;
&lt;br /&gt;
On death, the NPC can either drop a treasure, then:&lt;br /&gt;
* die and disappear&lt;br /&gt;
* respawn after a delay&lt;br /&gt;
&lt;br /&gt;
By default it will respawn.&lt;br /&gt;
&lt;br /&gt;
== NPC Critter Goon Setup ==&lt;br /&gt;
# Edit the script to set:&lt;br /&gt;
## SKILL_ATTACK from 1 to 10 (normal humans can only have 1-5 range, 6-10 is supernatural power!)&lt;br /&gt;
## SKILL_DEFENSE from 1 to 10 (normal humans can only have 1-5 range, 6-10 is supernatural power!)&lt;br /&gt;
## ARMOR - how hard is this creature to damage? from 0 to 5 where 0 is unarmored&lt;br /&gt;
## RESILIENCE - how many wounds from 1-20 can this creature take before dying?&lt;br /&gt;
## TREASURE - when killed does this creature drop items? this is a list! Multiple items will cause the creature to drop 1 random one from list.&lt;br /&gt;
## FLAG_RESPAWN - set true if you want monster to respawn after a delay, rather than die and disappear. This is the default.&lt;br /&gt;
## FLAG_DIE - set true if you want monster to die and disappear (llDie! cannot be undone!) rather than respawn. Use with caution.&lt;br /&gt;
# Now the tricky part - edit the HEARTBEAT() function content to implement your monster's Stance, Movement, Attack, and Defense behaviors&lt;br /&gt;
## This may be llMessageLinked() calls to other NPC brain functions&lt;br /&gt;
## This may be calls to MOVE_* and ATTACK_* functions in the NPC script.&lt;br /&gt;
## This may be to act on incoming link messages sent from other NPC brain scripts in the same object&lt;br /&gt;
# If you use incoming link messages, edit the link_message() function to receive them and trigger appropriate actions.&lt;br /&gt;
# Drop TREASURE items into monster &lt;br /&gt;
# Drop script into monster&lt;br /&gt;
# Test&lt;br /&gt;
&lt;br /&gt;
== The Myriad RPG Group ==&lt;br /&gt;
Join the Myriad RPG group for announcements and discussion around the Myriad RPG and Myriad Lite scripts.&lt;br /&gt;
&lt;br /&gt;
SecondLife: secondlife:///app/group/dbedc3be-729e-a123-d669-92f401e07a1e/about&lt;br /&gt;
&lt;br /&gt;
OSgrid: secondlife:///app/group/da0227e5-8a0d-4d99-b970-9411932c852d/about&lt;br /&gt;
&lt;br /&gt;
== Community ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Role&lt;br /&gt;
! Medieval&lt;br /&gt;
! Modern&lt;br /&gt;
! Futuristic&lt;br /&gt;
! Universal&lt;br /&gt;
|-&lt;br /&gt;
| Scripter&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| [[User:Allen_Kerensky|Allen Kerensky]]&lt;br /&gt;
|-&lt;br /&gt;
| Builder&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Tester&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Mentor/Teacher&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
== Feature Requests ==&lt;br /&gt;
If you have a feature you would like to see added to Myriad Lite NPC Critter Goon, write a new feature request on the talk page for this article.&lt;br /&gt;
&lt;br /&gt;
The best feature requests will have:&lt;br /&gt;
  Your SL name&lt;br /&gt;
  The name, version, and date of the script you are requesting new features in&lt;br /&gt;
  A description of the feature&lt;br /&gt;
  A sample implementation of the feature in LSL compatible with OSG and SL.&lt;br /&gt;
&lt;br /&gt;
== Bug Reports ==&lt;br /&gt;
If you find a bug or something that just doesn't seem right in how the Myriad Lite NPC Critter Goon script works, file a bug report on the talk page for this article.&lt;br /&gt;
&lt;br /&gt;
The best bug reports will have:&lt;br /&gt;
  Your OSG or SL name&lt;br /&gt;
  The name, version, and date of the script you are having problems with&lt;br /&gt;
  A description of the problem itself&lt;br /&gt;
  Steps to follow to reproduce the problem&lt;br /&gt;
&lt;br /&gt;
== Contributing to Myriad Lite ==&lt;br /&gt;
If you would like to contribute to the Myriad Lite project, please do!&lt;br /&gt;
&lt;br /&gt;
The best contributions will have:&lt;br /&gt;
  Your SL Name&lt;br /&gt;
  A description of the contribution&lt;br /&gt;
  The patch, script, file, or object being contributed&lt;br /&gt;
  A release stating: &lt;br /&gt;
  * that you intend to contribute this to Myriad Lite&lt;br /&gt;
  * that you are the original creator of the contribution or are legally empowered to contribute it&lt;br /&gt;
  * that you acknowledge this contribution can be released under the Creative Commons BY 3.0 Unported and Modified BSD (3-clause) licenses&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//============================================================================&lt;br /&gt;
// Myriad Lite NPC Critter Goon&lt;br /&gt;
// Copyright (c) 2012 by Lani Global Systems and Allen Kerensky (OSG/SL) All Rights Reserved.&lt;br /&gt;
// This work is dual-licensed under&lt;br /&gt;
// Creative Commons Attribution (CC BY) 3.0 Unported&lt;br /&gt;
// http://creativecommons.org/licenses/by/3.0/&lt;br /&gt;
// - or -&lt;br /&gt;
// Modified BSD License (3-clause)&lt;br /&gt;
// Redistribution and use in source and binary forms, with or without&lt;br /&gt;
// modification, are permitted provided that the following conditions are met:&lt;br /&gt;
// * Redistributions of source code must retain the above copyright notice, &lt;br /&gt;
//   this list of conditions and the following disclaimer.&lt;br /&gt;
// * Redistributions in binary form must reproduce the above copyright notice,&lt;br /&gt;
//   this list of conditions and the following disclaimer in the documentation&lt;br /&gt;
//   and/or other materials provided with the distribution.&lt;br /&gt;
// * Neither the name of Myriad Lite nor the names of its contributors may be&lt;br /&gt;
//   used to endorse or promote products derived from this software without&lt;br /&gt;
//   specific prior written permission.&lt;br /&gt;
//&lt;br /&gt;
// THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR&lt;br /&gt;
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES&lt;br /&gt;
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN&lt;br /&gt;
// NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,&lt;br /&gt;
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT&lt;br /&gt;
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,&lt;br /&gt;
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY&lt;br /&gt;
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT&lt;br /&gt;
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF&lt;br /&gt;
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;
//&lt;br /&gt;
// The Myriad RPG System was designed, written, and illustrated by Ashok Desai&lt;br /&gt;
// Myriad RPG System licensed under:&lt;br /&gt;
// Creative Commons Attribution (CC BY) 2.0 UK: England and Wales&lt;br /&gt;
// http://creativecommons.org/licenses/by/2.0/uk/&lt;br /&gt;
//============================================================================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Allen Kerensky</name></author>	</entry>

	</feed>