How do I a better way random events

Get help using Construct 2

Post » Tue Mar 18, 2014 3:59 pm

Could just use a steer on some random events

at the moment i have system events for a sprite moving around a map
but the problem is I am making hundreds of them
partyroll is just a random number eg. round(partyroll(100))
example: system - sprite.partyroll = 10 then stuff happens

is there a way to 1. say sprite.partyroll = 10 | 19 | 21 (using the OR operator?) on compare variables?

or some how get it to look for that number on a list of events then goto action

essentially a random roll is made when the sprite moves on button push which either leads to a combat encounter or loot find (standard RPG stuff)

not worried if there isnt an easy way i will plod on
B
10
S
2
G
2
Posts: 45
Reputation: 2,039

Post » Tue Mar 18, 2014 5:24 pm

@Binkus - yes, add all your conditions, then right-click and choose "Make OR block"
B
33
S
7
G
8
Posts: 312
Reputation: 8,528


Return to How do I....?

Who is online

Users browsing this forum: Fenix18 and 9 guests