Announcement

Collapse
No announcement yet.

Randomizer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Randomizer

    Sorry if this is answered somewhere else in the posts. There are so many faqs and strategies to sort through that I didn't know if I would be able to find it, so I will ask again now. Is there a random event creator in RPGM2? I was looking through it last night, and I couldn't find the option that it would be. I saw Rodak's strategy on how to make random events more random, but I am looking for something less complicated for my restaurant game.

    Example: Say a customer makes you mad, and you spit in their burger or something before you give it to them. I want to make it so there is a certain percent chance that they will find it and come back up to you and complain. I don't need to know how to do all the other scripting for this whole example, I am just wondering how you do the random or percent chance.

    Better yet, If someone could just tell me how to make this work, and then I could take it from there. You have a character you talk to, and there are three possible things he/she could say when you talk to them. Is it possible to do something like this?

    Sentence A-20% chance
    Sentence B-10% chance
    Sentence C-70% chance
    Can you do something like this, like in rpg maker 1, or is it much more complicated, involving variables and tons of scripting? If someone can answer this, I would appreciate it much. It is crucial to the admittedly stupid humor in the game I am making. Thanks in advance!
    "What we do in life echoes in eternity"-Gladiator

    #2
    Re: Randomizer

    When setting values for variables you can choose the "operator" as either =, >, <, etc.

    Among them is a ?

    That randomizes the value between the numbers you select.

    So for your purposes select a variable and set it's value as 1 ? 100.

    Then set a few Script Branch Conditions that read such that they set what you want.

    An example:

    Data: Variable "Talkies" = 1 ? 100
    Script Branch: Condition: Talkies <10
    Message "Sentence B"
    Force Script End
    Branch End
    Script Branch: Condition: Talkies <30
    Message "Sentence A"
    Force Script End
    Branch End
    Message "Sentence B"


    Set up that way it will work. If less than 10 (you may want to use Less than or equal to) it will do one thing and end the script. If between 11 and 30 another, and above 30 yet another still. You need the Force ends or too many messages might display. Also the final message will only be reached if the previous two conditions are not met and thus needs no condition.

    I hope that helps.

    Peace.

    EDIT:

    I corrected the above script... I should not post while eating lunch!!
    Last edited by Rodak; 11-16-2005, 04:06 PM.

    MOO!




    Comment


      #3
      Re: Randomizer

      Thank you very much. Rodak to the rescue again, hehe. You rock, man. That is exactly what I was looking for. I figured the capabilities were there, but I just couldn't quite find them. Interestingly enough, I got close. I looked at the in-game help about variables, and it actually said something about the ?, but I wasn't quite sure it is what I was looking for. That is a handy feature though, as some of that in-game help does actually explain things well. Anyways, thanks again Rodak. If you have a chance, maybe you can help me with the topic I posted in the RPG Maker Workshop section. I was interested in learning programming, and was looing for some suggestions to get started. Take care man
      "What we do in life echoes in eternity"-Gladiator

      Comment

      Working...
      X