Code: Select all
Actor2:age => Actor:age
Actor2:age += random(-10, 10)
Possible bug: Age limitation
Explication:
If Actor age is 18 and the random chose -10, Actor2 will have 8
The best way is like that:
Code: Select all
Actor2:age => Actor:age
Actor2:age += random(-10, 10)
If Actor2:age < 18
Actor2:age => 18
EndIf
If Actor age is 18 and the random chose -10, Actor2 will have 8
No problem, I set Actor2 to 18 as default.
That's it!