Jump to content

CK2 random event pictures


Guest SuperSayian123

Recommended Posts

Guest SuperSayian123

Is it possible to have an event pick out a random event picture? Like having pictures be picture1, picture2, picture3... picture100. The event would roll a random number 1-100 and load a 'picture'+str(randomnumber). I'd like some variety in h mods and if I could add all of my images, it'd be really good.

Link to comment

Is it possible to have an event pick out a random event picture? Like having pictures be picture1, picture2, picture3... picture100. The event would roll a random number 1-100 and load a 'picture'+str(randomnumber). I'd like some variety in h mods and if I could add all of my images, it'd be really good.

 

Yes.  I have posted code on how to do it, and since I originally did that, I have come up with an even better way of doing it.  I'll try to get something written up in the next day or two on the better way I came up with of doing it, but my original write-up with sample code can be found on the first post here:  http://www.loverslab.com/topic/75041-ck2-modding-tricks/?p=1845805

 

I hope that helps.  :)

Link to comment
Guest SuperSayian123

 

Is it possible to have an event pick out a random event picture? Like having pictures be picture1, picture2, picture3... picture100. The event would roll a random number 1-100 and load a 'picture'+str(randomnumber). I'd like some variety in h mods and if I could add all of my images, it'd be really good.

 

Yes.  I have posted code on how to do it, and since I originally did that, I have come up with an even better way of doing it.  I'll try to get something written up in the next day or two on the better way I came up with of doing it, but my original write-up with sample code can be found on the first post here:  http://www.loverslab.com/topic/75041-ck2-modding-tricks/?p=1845805

 

I hope that helps.   :)

 

That does help! It works perfectly.

Link to comment

 

 

Is it possible to have an event pick out a random event picture? Like having pictures be picture1, picture2, picture3... picture100. The event would roll a random number 1-100 and load a 'picture'+str(randomnumber). I'd like some variety in h mods and if I could add all of my images, it'd be really good.

 

Yes.  I have posted code on how to do it, and since I originally did that, I have come up with an even better way of doing it.  I'll try to get something written up in the next day or two on the better way I came up with of doing it, but my original write-up with sample code can be found on the first post here:  http://www.loverslab.com/topic/75041-ck2-modding-tricks/?p=1845805

 

I hope that helps.   :)

 

That does help! It works perfectly.

 

 

I'll be testing a new, simpler version when I get home from work tonight.  *IF* it works, I'dd definitely post it up.

Link to comment
  • 3 years later...
  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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