Jump to content

Recommended Posts

Posted

These are some lines in my script:

 

  Reveal hidden contents

 

 

I'm trying to simplify it to make my script more compact and better looking. I'm still new to Papyrus and i heard about arrays recently, so i tried to learn about it but couldn't manage to solve my case here yet. What i'm actually trying to do is making MoralityChance to be more accurate by giving it a base value of 0.01 (or 1%) instead of 0.05 (or 5%) as stated in above lines. I heard about arrays so i thought i might use it, not only to simplify these lines but also making MoralityChance more accurate by giving it 0.01 (1%) base value and incremented until 1.00 (100%) value.

So, can we simplify these lines in my script? If so, would anyone give me a guide on how to?

Posted (edited)

Okay, not knowing everything you are trying to accomplish this cannot be flushed out for your needs. But hopefully it can serve as an example that you can adapt to your needs.

 

  Reveal hidden contents

 

Edited by IsharaMeradin
Posted
  On 1/12/2019 at 6:06 AM, IsharaMeradin said:

Okay, not knowing everything you are trying to accomplish this cannot be flushed out for your needs. But hopefully it can serve as an example that you can adapt to your needs.

 

  Reveal hidden contents

 

Many thanks! :laugh:

This should do most of the works. I'll collaborate it and i may ask again if i get another question. Once again, thanks :smile:

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...