Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

can we create a game-like environment?

azi Shilton
Registered User
Join date: 27 Jul 2006
Posts: 7
08-23-2006 01:48
hi

anyone knows if i can write a script to create a game-like environment? let me elaborate.
i intend to purchase a private island for students to role-play based on particular scenarios i create. so suppose they make a good comment, i'd like to award them some points, e.g 10 points for a good suggestion, -10 points for negative remarks. etc.... so at the end of their role-playing scenario, each student would have a certain no. of points as an indicator of their performance in that scenario.

anyone knows if this can be done? if yes, pls point me to where i can find the information/scripts. thanks!
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
08-23-2006 01:57
extremely hard to control but its possible in theory
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u
Lewis Nerd
Nerd by name and nature!
Join date: 9 Oct 2005
Posts: 3,431
08-23-2006 01:57
It's certainly possible, there are combat systems that keep a 'health' rating and scores, so the principle is definitely there. It would simply be an 'attachment' that each avatar would have to wear, with a central score system being reported back to.

The scripting is way beyond my capabilities but there should be plenty of people who will take this on for you, if you're prepared to pay for it.

Lewis
_____________________
Second Life Stratics - your new premier resource for all things Second Life. Free to join, sign up today!

Pocket Protector Projects - Rosieri 90,234,84 - building and landscaping services
CJ Carnot
Registered User
Join date: 23 Oct 2005
Posts: 433
08-23-2006 02:00
Yes you could easily script this kind of scenario. If you know how to do any programming already, LSL will come easily to you but I don't think that there is anything available already to suit your needs. If you can't write it yourself there are many scripters available to hire for custom work.

The scripting forum would be a good place to start your enquiries:
/54/1.html

The scripting wiki is the best resource for the scripting language itself:
http://secondlife.com/badgeo/wakka.php?wakka=HomePage

(A simple system that allowed your in-game character to award or subtract points from your students could be scripted as an attachment for them to wear in as few as a dozen lines of code or so)
Cortex Draper
Registered User
Join date: 23 Aug 2005
Posts: 406
08-23-2006 02:26
The dark life island is a roleplaying island similar to diablo or D&D where you battle monsters. (Darklife combat may seem a little slow but for a faster paced combat systems look at the various scripted safezone combat systems used in combat or gor islands)

Darklife uses a backpack to store all the information about your characture such as your level, experience, level in the different skills etc.
Basically they are having an attatchment worn by the characture with scripts inside it that remember things. At least I think thats how it works.

Another way would be an object on your island NOT worn by the player with a script that knows the ids of the players and can store things about them, check their location on the island, move, animate them etc.
You could also use a combination of the 2 with the attatchment sending messages to the stationary object.

A safer more long term way to store information would be to store it external from second life in a database on a website. Second life scripts can communicate with that.
Or you could mix the 2 ways of storing the information and every so often output the information to the database for safety (dark life may do that, Im not sure )
Howie Lament
Registered User
Join date: 22 Apr 2004
Posts: 30
08-23-2006 03:36
Slytherin would always win anyway :mad:
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
08-23-2006 03:48
the main problem for now is that private island owners haven't yet agressive scripted controls on the avatars in it, also i don't see why an island owner script should need to request permissions to an avatar to trigger animations , take controls or what ever, also, you can't for example filter the script they can run or restrict what they can equip, or prevent some objects to be rezzed and not others. Makes game environement creation a lot harder

i hope we will get such capabilities later
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u
Mark Busch
DarkLife Developer
Join date: 8 Apr 2003
Posts: 442
08-24-2006 14:35
instead of an attachment (the easy way), a 'central' script is also possible like said before, however you must keep in mind that scripts have very little memory.
And even worse: if you exceed the memory limit the script will crash and will forget all data.
So in case of a central script you should either store imprortant information somewhere safe (like a webserver using the HTTP protocol) or you should find out the limits of the scripts you made, and make sure you don't exceed the memory limit.

And if you don't have a webserver, and you don't want attachments AND you need to store a lot of data, then you can distribute data in multiple scripts. This can be a bit difficult to do right, so you better find a good scripter if you plan on doing this.
Slip Barrett
Irish
Join date: 5 Apr 2006
Posts: 119
08-24-2006 15:38
Yes. In fact, Navar Harbinger created one with experience levels and everything exactly like your talking about. It just takes some intricate scripting.