Jump to content
Sign in to follow this  
AlistairCuis

A dice hud that adds to rolls based on information in a notecarded Configuration.

Recommended Posts

So I'm working on something that's going to be a rather large undertaking. I've figured out how to do a "bare-bones" kind of dice hud that just rolls a basic 2-20. However now I need to go to the next step.

I want to make a roleplaying system dice hud for my sim. For this I want it so that when you click the HUD you get a menu, that lists all the skills in my system. When you click the skill it refrences a notecard in the Hud to do some minor math before displaying the result: IE.

There's a normal 2d6, 2d8, 2d10, 2d12, 2d16, 2d20 ((Whatever basic configuration that always rolls a standard die))

Though I want it to look into a note card to add in a character's "STATS" and "SKILL LEVEL"

So say they want to hit someone with a sword?

I want the Hud to generate a random value between 2 and 12, then add in the character's Strength, speed, perception stats as well as their sword skill level.

If I could see the basics of HOW to start this I can then move forward from there.

The first bit I think I need to do is the menu, which I have no idea how to do, then I need to know how to make the script access the notecard. I already know how to make a 2d6, 10, 20... whatever I'll decide on that I need. Though I need to see a script that opens up a menu when you click the object, and then allows me to select multiple roll types.and have it refrences a notecard for each roll to pull out the stats and skill level to calculate the roll properly.

Share this post


Link to post
Share on other sites

It sounds like you want to write a basic multilevel menu.  If you already know how to create a simple dialog, it's not much harder.  Use the responses from your first dialog as prompts to open the next level.  That is, when your script hears a response in your listen event, open a new dialog there that is based on that response.  For example, look at the way Alicia Sautereau handles a two-level system in her script in the LSL Scripting Library here.

Share this post


Link to post
Share on other sites

Well I don't know how to make a dialog, All I've got so far is a simple dice script that when you click it just does a 2d10 atm. I was thinking I could put osmething irectly in the script and string that addition, but that would get complicated down the road, having it read a notecard to pull in the stats and skill levels would be more benefitial.

 

Share this post


Link to post
Share on other sites

In total I'll have 3 Categories for skills to fall under. Body, for physical rolls, Mind for mental rolls, and Soul for social rolls. I'd liek to put all the "physical" skills under the body menu. All the "Mental" skills under mind, and all the "social" rolls under Soul. or have the option of a "basic" roll right off theb at from the start menu.

The "stats" aren't going to show up in the menu, just a person's character sheet.

Though then umber of skills I want to employ venture close to about 100 skills. things from Melee attack, down to something like swimming.

For example person A is trying to Outswim Person B

They click the HUD, that opens up the menu and they see "Body, Mind, Soul, Basic" They click Body. That brings up a new menu where they hit next until they find "swimming" then they click swimming.

 

Then local chat displays the following:

Person A has rolled "SWIMMING" for a total of 20.

This 20, should come from their Stats and skills, and a random bonus from the die.

Say they have 5 strength, 5 speed, and 5 endurance... and level 3 swimming? then to equal 20 thedice gave them a randomized 2. I want all this math to be in the script, so players don't have to worry about adding it up. Thoguh I dont' know how to get this script to that point. All I can do is the randomized dice roll atm.

Share this post


Link to post
Share on other sites


AlistairCuis wrote:

Well I don't know how to make a dialog, All I've got so far is a simple dice script that when you click it just does a 2d10 atm. I was thinking I could put osmething irectly in the script and string that addition, but that would get complicated down the road, having it read a notecard to pull in the stats and skill levels would be more benefitial.

 

Then study Alicia's script that I pointed you to earlier.  You might also want to work through a basic tutorial on dialogs.  It sounds to me as if you have much of the logic of your system mapped out, at least in your head.  That's the hard part -- and the fun part -- of scripting.  You may want to get that full map down on paper so you can see it.  From there, the mechanics of writing the dialog structure is repetitive but not difficult.

Share this post


Link to post
Share on other sites

It's not impossible to learn scripting with a big project in mind. However it is very important that you take your time. You have a lot of ideas. But you seem to have very little knowledge of what is possible or not possible with LSL.

1) Take your time. It will probably Months to arrive at the stage that you have in mind.

2) Read some basic LSL tutorials. Do some internet search how you could achieve things. You can for example google quite easily what kind of menus are possible or not possible with LSL. You will encounter a LOT of serious problems when you really go through with your project. Try to solve things yourself first and come here when you get stuck.

3) Try to find out what kind of operations you will need in your hud. Make one simple script for each operation to understand the principle before you combine them. One of these scripts will be to create a simple dialog menu.

4) You think that you have your concept but it will change a lot. You don't have enough scripting experience. I would guess that reading notecards are most probably not the best way forward, but you need to find out for yourself. Do you know what global variables are? If not, look it up!

5) Here are some resources to start with: http://wiki.secondlife.com/wiki/LSL_Tutorial

Come here and ask very concrete questions of very concrete problems that you encounter. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...