How do I make text randomize instance variables?

Get help using Construct 2

Post » Fri Jun 24, 2016 2:24 pm

How do I do this correctly? http://imgur.com/DsVB7dN
B
10
S
3
G
1
Posts: 38
Reputation: 1,242

Post » Fri Jun 24, 2016 2:46 pm

The q11 q21, ext are variables.
B
10
S
3
G
1
Posts: 38
Reputation: 1,242

Post » Fri Jun 24, 2016 2:47 pm

*ect
B
10
S
3
G
1
Posts: 38
Reputation: 1,242

Post » Fri Jun 24, 2016 2:52 pm

System expressions wrote:choose(a, b [, c...])
Choose one of the given parameters at random. E.g. choose(1, 3, 9, 20) randomly picks one of the four numbers and returns that. This also works with strings, e.g. choose("Hello", "Hi") returns either Hello or Hi. Any number of parameters can be used as long as there are at least two.
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Fri Jun 24, 2016 2:57 pm

R1,R2,R3,R4 are string variables.

Set R1 to choose(a,b,c,d .......................,z)
Set R2 to choose(a,b,c,d .......................,z)
Set R3 to choose(a,b,c,d .......................,z)
Set R4 to choose(a,b,c,d .......................,z)

Using an Array or a list you can do this with a loop.

Set text to R1&R2&R3&R4
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 52 guests