- Jul 9, 2017
- 592
- 1,160
@Vinfamy
Sorry I think I have found a rather bad bug. In Sugerbabe++ I modify a lot of stats, I have a sugerbabe with 100 attractiontoplayer. On doing "Actor:attractiontoplayer += Random(0, 1)" the attractiontoplayer stat changes to -100!
I tried "if attractiontoplayer > 100:attractiontoplayer =100"
The only fix I can get working is:
"Rnd = Random(0, 1)
If Rnd + Actor:attractiontoplayer > 100
Actor:attractiontoplayer = 100
Else
Actor:attractiontoplayer += Rnd
Endif"
No idea if other stats are the same! It will be a bitch to put this on all stat throughout the code!
Sorry I think I have found a rather bad bug. In Sugerbabe++ I modify a lot of stats, I have a sugerbabe with 100 attractiontoplayer. On doing "Actor:attractiontoplayer += Random(0, 1)" the attractiontoplayer stat changes to -100!
I tried "if attractiontoplayer > 100:attractiontoplayer =100"
The only fix I can get working is:
"Rnd = Random(0, 1)
If Rnd + Actor:attractiontoplayer > 100
Actor:attractiontoplayer = 100
Else
Actor:attractiontoplayer += Rnd
Endif"
No idea if other stats are the same! It will be a bitch to put this on all stat throughout the code!