Dice rolling w variables

flyingninja77

  • Posts: 30
Alright, the game has been posted on StencylForge!  There is one known bug; i.e., when someone rolls doubles, the game doesn't calculate that for some odd reason.  I'll see if I can work on it.  Search for "DEMO--Risk Style Dice Game."

scjoye

  • Posts: 62
Meestar & Innes: "I could have sworn I replied to this asking why you had 6 dice actors per die and told you how to do what you asked... Anyways, you would need to compare each die to the other dice."

Yup - totally, you did and when you replied again it made more sense... I went back and looked at your OP again (prob 20 times now) and it is making more sense... I get the animation vs. actors vs. frames issue... I'll fix / redo ASAP - I completely misunderstood and then it was sort of working with 6 actors so I thought it was correct, pretty sure I get the point of what you guys are saying though (hopefully).

flyingninja77: I have looked at your game / code. A lot of it is WAY over my head and I am trying to piece it together slowly using some of your samples... I want to learn from it, not copy it though... so it is taking a while. One BIG question... very often you are using a "when X happens" event... X may be "Postroll" "Roll" "Compare" etc. BUT those are not defined attributes that I can see... are you just typing in Roll or Compare etc. as a label for that specific event? But this is NOT an attribute that you could use later on in another event correct? THANK YOU AGAIN FOR THE EXAMPLE IT HAS BEEN GREAT TO LEARN FROM!

Again thank you guys for the follow up help - it really is beneficial to me and I appreciate the time!


Meestar

  • Posts: 654
Yes, those are called custom events and you can name them whatever you want.  You use the "trigger event" code blocks to access custom events.  They are a nice way to break up code or for code that you need to use a lot.  I'm glad we're helping you to learn more!
PM me if you require help.  I'm always glad to help out!