|
|
Line 1: |
Line 1: |
| ''by AdNovea - July 2009''<br> | | <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> |
| '''[[Q-Sims_-_The_OpenSim_metavers_for_QNAP|Q-Sims Homepage]]''' <br> | | === This page contains the following errors: === |
| __NOTOC__ | | <div style="font-family:monospace;font-size:12px">error on line 1 at column 1122: Unescaped '<' not allowed in attributes values </div> |
| <br>
| | === Below is a rendering of the page up to the first error. === |
| | </parsererror> |
| | ''by AdNovea - July 2009''<br/>'''[[Q-Sims_-_The_OpenSim_metavers_for_QNAP|Q-Sims Homepage]]'''<br/>__NOTOC__ |
| | |
| == Foreword == | | == Foreword == |
| <blockquote> | | <blockquote>This page will quickly give you the basis to start to develop your own MMORPG game on your QNAP server.<br/>Starting July 2009, OpenSim has begun implementing some functions of the '''Combat System'''. Read more at [[http://wiki.secondlife.com/wiki/Combat Combat]]<br/>Here is below the very first steps to start a MMOG on Q-Sims.</blockquote> |
| This page will quickly give you the basis to start to develop your own MMORPG game on your QNAP server.<br> | | |
| Starting July 2009, OpenSim has begun implementing some functions of the '''Combat System'''. Read more at [[http://wiki.secondlife.com/wiki/Combat Combat]]<br> | |
| Here is below the very first steps to start a MMOG on Q-Sims. | |
| </blockquote> | |
| <br>
| |
|
| |
|
| == Enabling the damages == | | == Enabling the damages == |
| <blockquote> | | <blockquote>By default the parcel of a region of your Sims is safe. To enable the Combat system you should first disable the safe option.<br/><br/>[[File:Q-Sims safe-damage.jpg|thumb|center|500px|Enable damages in a parcel]]</blockquote> |
| By default the parcel of a region of your Sims is safe. To enable the Combat system you should first disable the safe option.<br> | |
| <br> | |
| [[Image:Q-Sims_safe-damage.jpg|thumb|center|500px|Enable damages in a parcel]] | |
| Once a parcel is no longer safe, whenever an avatar enter in such a parcel, the life score will be displayed:
| |
| [[Image:Q-Sims_damage-enabled.jpg|thumb|center|500px|Avatar life score in a unsafe parcel (''already suffered from damages'')]]
| |
| </blockquote>
| |
| <br>
| |
| | |
| == Testing your avatar life ==
| |
| <blockquote>
| |
| In an unsafe zone, just go up in the sky and let your avatar drop on the ground. Press '''PageUp''' to fly and '''F''' or "''Stop flying''" to free falling.<br>
| |
| When your life level reach 0%, you are sent back to your home location and healing starts.<br>
| |
| <br>
| |
| [[Image:Q-Sims_Dead.jpg|thumb|center|500px|This avatar killed herself in an unsafe parcel]]
| |
| </blockquote>
| |
| | |
| == Build your MMORPG==
| |
| <blockquote>
| |
| | |
| === Define the rules and the needs ===
| |
| <blockquote>
| |
| This is the <u>'''MOST IMPORTANT STEP'''</u> because you shall have identified all '''Combat System limitations''' in order to make your MMORPG achievable. Wrong understanding of the limitations can turned your MMORPG into a poor low level game.<br>
| |
| <br>
| |
| You shall ask yourself questions such as:
| |
| # '''PvP''' : Will my game be a Player versus Player game
| |
| # '''NPC''' : Do I need to create Non Player Characters (''e.g. monsters'')
| |
| # '''Drops''' : Do I need drops (''gifts left by beaten NPC'')
| |
| # '''Healing''' : Do you need to heal your avatars or will they be only revivaled when dead
| |
| # '''Vehicles''' : Do you need tanks, airplanes, boats...
| |
| # and more ...
| |
| <br>
| |
| Each choice may involve the creation of specifics objects or leads to a dead-end.
| |
| # PvP is fine but any collisions between avatars may damage both avatars
| |
| # NPC will have only the AI (''Artificial Intelligence'') of the associated script
| |
| # Drops will require to restore, at the start of games, all the NPC that leave drops
| |
| # Healing is not yet available. There is no possibility to have negative damages. Only revival is automatically performed and killed avatars are sent back to their home location.
| |
| # Vehicle cannot be armored because any collisions to objects where the avatars are sitting on are affecting the avatars themselves
| |
| </blockquote>
| |
| | |
| === Create your MMORPG Sims ===
| |
| <blockquote>
| |
| Next step is to create your Sims. Browse the Internet to visit RPG Sims running on OpenSim.<br>
| |
| <br>
| |
| [[Image:Q-Sims-MMOG_sims.jpg|thumb|500px|center|Exemple of MMORPG Sims: Delirium City on osgrid.org]]
| |
| </blockquote>
| |
| <br>
| |
| | |
| === Create objects that make damages ===
| |
| <blockquote>
| |
| To damage avatars you shall create objects (''sword, bullets, etc'').
| |
| We can consider the following objects:
| |
| * The permanent objects such as swords, knife, etc...
| |
| * The temporary objects such as bullets, mines, etc... that disappear once used
| |
| * Damaging objects such as weapons
| |
| * Damaged objects such a monsters that may release drops once beaten for example
| |
| <br>
| |
| The damage objects shall have the '''Physical''' property enabled in order to ''hit'' or be ''collided''.<br>
| |
| With Physical enabled, the objects are submitted to the gravity. Therefore, they may collapse, sink, roll and move by themselves depending of the terrain shape.<br>
| |
| <br>
| |
| {|
| |
| |- style="background-color: #FFF4F4; font: normal 8pt Arial;" valign="middle"
| |
| |[[Image:Exclamation.png]]
| |
| |<span style="color: red">'''IMPORTANT NOTE''': llSetDamage instruction is currently under implementation</span>
| |
| |}
| |
| <br>
| |
| </blockquote>
| |
| ==== Permanents damaging objects ====
| |
| <blockquote>
| |
| * Create a sword '''object''' for example.<br>
| |
| [[Image:Q-Sims_sword.jpg|thumb|500px|center|Example of weapon: Sword]]
| |
| <blockquote>
| |
| In the blade of your Sword, place the LSL script below to define the level of damage.<br>
| |
| Optionally you can define the collision sound (''place the sound in the Content folder of the blade'')
| |
| <pre>default
| |
| {
| |
| state_entry()
| |
| {
| |
| llSetStatus(STATUS_PHYSICS, TRUE);
| |
| //This will take off 10% when a avatar collides with the prim
| |
| llSetDamage(10.0);
| |
| llCollisionSound("sword hit", 1.0);
| |
| }
| |
| }
| |
| | |
| </pre></blockquote>
| |
| * '''Attach''' the sword to your avatar right hand
| |
| * In your '''Inventory''', create a '''New gesture''' (''see [[Q-Sims_-_Guidelines#How To create gestures |How To create gestures]]''), add a new '''Animation step''', in the drop list select '''Sword strike''', in '''Short cut key''' select for example '''Shift F5''' (''to hit with the sword, you will have to press shitt+F5''), you can add a Sound (''move sound'') if you have already uploaded one sound for this.
| |
| * Right click in your Inventory the newly created gesture, rename it and select '''Activate'''.
| |
| <br>
| |
| '''''NOTE''': To manage the weapons power in a Combat zone, you better avoid avatars to bring their own weapons and make some available in situ.''
| |
| </blockquote>
| |
| | |
| ==== Temporary damaging objects ====
| |
| <blockquote>
| |
| With temporary damaging objects you will have to delete them after collision using the '''llDie();''' instruction.<br>
| |
| You can use the particle and smoke effects to improve the visual effects.<br>
| |
| <br>
| |
| [[Image:Q-Sims_damage-objects.jpg|thumb|500px|center|Set damage objects to PHYSICAL]]
| |
| * Example of bullets:
| |
| <pre> | |
| //Simple autokiller bullet: | |
| //When it rezzed it scans for the closest person,
| |
| //Moves to their location and kills them. (Because
| |
| //It collides with them)
| |
| default {
| |
| on_rez(integer i) {
| |
| llSetTimerEvent(10.0);
| |
| llSensor("", "", AGENT, PI, 96.0);
| |
| }
| |
| timer() { llDie(); }
| |
| sensor(integer num) {
| |
| llSetStatus(STATUS_PHYSICS, TRUE);
| |
| llSetDamage(100.0);
| |
| llMoveToTarget(llDetectedPos(0), 1.0);
| |
| }
| |
| }
| |
| </pre>
| |
| * With weapons like machine-gun, you shall use the '''mouselook''' view mode while shooting. There is an aim to guide your shoot.
| |
| [[Image:Q-Sims_mat.jpg|thumb|500px|center|Freebies: machine-gun]]
| |
| </blockquote>
| |
| | |
| ==== Needs for weapons? ====
| |
| <blockquote>
| |
| Here a list of 35 [http://secondlife.mitsi.com/cgi/llscript.plx?Category=Weapons weapons scripts].
| |
| </blockquote>
| |
| | |
| </blockquote>
| |
| <br><br>
| |
| [[Category:Communications]] [[Category:QPKG|Q]] [[Category:Q-Sims|Q]]
| |