Jump to content

Scripting knowledge requested.


beck11

Recommended Posts

Im trying to add animation into the SexoutRandomize script and my limited(read: non-existent) is stumbling me. I understand enough to know where to add animation values in the script i.e Raper, Oral, Lesbian but actually constructing the new lines is making me nervous.

 

Snippet of the code in the script.

 

              if raper
              ; now cowgirls or passive males
              ; 601-609, 631-636, 701-710
              ...
              ...
              ...
              elseif rndValA <= 88
                set Anim to 707
              elseif rndValA <= 92
                set Anim to 708
              elseif rndValA <= 96
                set Anim to 709
              else
                set Anim to 710
              endif

 

 

 

 

I just need something about the "elseif rndValA" line cleared up. If I wanted to add new lines in is this how do I do it?

              elseif rndValA <= 92
                set Anim to 708
              elseif rndValA <= 96
                set Anim to 709
              elseif rndValA <= 99
                set Anim to 710
             elseif rndValA <= 102
                set Anim to xxx
             elseif rndValA <= 106
                set Anim to yyy
             else
                set Anim to zzz
              endif
 

Would this work? Idk if the rndValA number can go that high, I dont see any example of this in the script hence why Im unsure of how to implement new animations into the script.

 

Cheers.

Link to comment

Beck11, if no one responds try PMing either astymma or jaam  as both of them seem to be familiar with the inner workings of the scripts.  I am trying to port over some lovers animations with the help of Gerra6's tools and they are filling me in on the details.

 

If you have any advice on FNV animating I would love to hear it, as I am a complete noob regarding sexout animations.  I am only familiar with the lovers with pk ones.

 

 

Link to comment

RandValA is just a GetRandomPercent, which returns between 0 & 99. So that wouldn't work.
I think it would be good if you weighed in on the porting Lovers anims to sexout thread, beck - if greg's adding anims, sexoutng's randomizing script will need to be touched up, & we probably shouldn't have different versions of the same script around. Might be a good occasion to get some of your stuff ported over too, if you'd like?

Link to comment

 

Im trying to add animation into the SexoutRandomize script and my limited(read: non-existent) is stumbling me. I understand enough to know where to add animation values in the script i.e Raper, Oral, Lesbian but actually constructing the new lines is making me nervous.

 

Snippet of the code in the script.

              if raper
              ; now cowgirls or passive males
              ; 601-609, 631-636, 701-710
              ...
              ...
              ...
              elseif rndValA <= 88
                set Anim to 707
              elseif rndValA <= 92
                set Anim to 708
              elseif rndValA <= 96
                set Anim to 709
              else
                set Anim to 710
              endif

 

 

 

 

I just need something about the "elseif rndValA" line cleared up. If I wanted to add new lines in is this how do I do it?

              elseif rndValA <= 92
                set Anim to 708
              elseif rndValA <= 96
                set Anim to 709
              elseif rndValA <= 99
                set Anim to 710
             elseif rndValA <= 102
                set Anim to xxx
             elseif rndValA <= 106
                set Anim to yyy
             else
                set Anim to zzz
              endif
 
Would this work? Idk if the rndValA number can go that high, I dont see any example of this in the script hence why Im unsure of how to implement new animations into the script.

 

Cheers.

You are suppose to divide  100 by the number of animations and then increment each value compared to rndValA by that amount.

I'll give you a practical example in minute.

 

So: a direct modification of the current script for 28 animations would be:

             if rndValA <= 3
                set Anim to 601
             elseif rndValA <= 6
                set Anim to 602
             elseif rndValA <= 9
                set Anim to 603
             elseif rndValA <= 12
                set Anim to 604
             elseif rndValA <= 15
                set Anim to 605
             elseif rndValA <= 18
                set Anim to 606
             elseif rndValA <= 21
                set Anim to 607
             elseif rndValA <= 24
                set Anim to 608
             elseif rndValA <= 27
                set Anim to 609
             elseif rndValA <= 30
                set Anim to 631
             elseif rndValA <= 33
                set Anim to 632
             elseif rndValA <= 36
                set Anim to 633
             elseif rndValA <= 39
                set Anim to 634
             elseif rndValA <= 42
                set Anim to 635
             elseif rndValA <= 45
                set Anim to 636
             elseif rndValA <= 48
                set Anim to 701
             elseif rndValA <= 51
                set Anim to 702
             elseif rndValA <= 54
                set Anim to 703
             elseif rndValA <= 57
                set Anim to 704
             elseif rndValA <= 60
                set Anim to 705
             elseif rndValA <= 63
                set Anim to 706
             elseif rndValA <= 66
                set Anim to 707
             elseif rndValA <= 69
                set Anim to 708
             elseif rndValA <= 72
                set Anim to 709
             elseif rndValA <= 75
                set Anim to 710
             elseif rndValA <= 78
                set Anim to xxx
             elseif rndValA <= 81
                set Anim to yyy
              else
                set Anim to zzz
which is heavily unbalanced toward zzz.

A better alternative in my opinion would be replace GetRandomPercent by rand (from NVSE)

Big advantage you can use

set randValA to rand 0 28
which then let you write:
            if raper
             set randValA to rand 0 28
              ; now cowgirls or passive males
              ; 601-609, 631-636, 701-710
             if rndValA <= 1
                set Anim to 601
             elseif rndValA <= 2
                set Anim to 602
             elseif rndValA <= 3
                set Anim to 603
             elseif rndValA <= 4
                set Anim to 604
             elseif rndValA <= 5
                set Anim to 605
             elseif rndValA <= 6
                set Anim to 606
             elseif rndValA <= 7
                set Anim to 607
             elseif rndValA <= 8
                set Anim to 608
             elseif rndValA <= 9
                set Anim to 609
             elseif rndValA <= 10
                set Anim to 631
             elseif rndValA <= 11
                set Anim to 632
             elseif rndValA <= 12
                set Anim to 633
             elseif rndValA <= 13
                set Anim to 634
             elseif rndValA <= 14
                set Anim to 635
             elseif rndValA <= 15
                set Anim to 636
             elseif rndValA <= 16
                set Anim to 701
             elseif rndValA <= 17
                set Anim to 702
             elseif rndValA <= 18
                set Anim to 703
             elseif rndValA <= 19
                set Anim to 704
             elseif rndValA <= 20
                set Anim to 705
             elseif rndValA <= 21
                set Anim to 706
             elseif rndValA <= 22
                set Anim to 707
             elseif rndValA <= 23
                set Anim to 708
             elseif rndValA <= 24
                set Anim to 709
             elseif rndValA <= 25
                set Anim to 710
             elseif rndValA <= 26
                set Anim to xxx
             elseif rndValA <= 27
                set Anim to yyy
              else
                set Anim to zzz

Easier to read and adding new anims would be pretty easy.
Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use