playMaker

Author Topic: Add a random int instead of setting it.[SOLVED]  (Read 879 times)

MichaelPatriot21

  • Playmaker Newbie
  • *
  • Posts: 23
Add a random int instead of setting it.[SOLVED]
« on: January 19, 2019, 09:39:22 PM »
I want an action like math> random int, except I want to add to an int not replace it. What I want is for everytime the player hits recruit he recruits a random number of archers, footmen, etc.
« Last Edit: January 21, 2019, 04:42:06 AM by jeanfabre »

MichaelPatriot21

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Add a random int instead of setting it.
« Reply #1 on: January 19, 2019, 10:46:03 PM »
I figured it out. I set another int variable, randomnized that variable, then added them together.