RPG variables

Get help using Construct 2

Post » Wed May 08, 2013 7:38 am

how do... when i have variable 'Constitution' to 1, 'max HP' i set to 12 but when i set 'constitution' to 2 'max HP' is to 24 ?

I can do it with many events but im looking for simplier solution with One event
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Wed May 08, 2013 8:42 am

@delgado:

I'll call your condition for constitution to change Condition_C

On Condition_C:
set Constitution to Variable
set Max_HP to 12*Constitution

But I don't how if that is exactly what you wantAphrodite2013-05-08 08:43:12
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,094
Reputation: 15,355

Post » Wed May 08, 2013 9:20 am

Yes it works perfectly and your solution is true simple! thanks!
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Wed May 08, 2013 9:43 am

@Aphrodite

i create Variable called 'Defense' so i set event:Set defense to head *1 & arm *3 & shield *4 & boots *1

and defense still shows me '1'


I do not know how to sum ??up all the variables

B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Wed May 08, 2013 9:48 am

[QUOTE=delgado] @Aphrodite

i create Variable called 'Defense' so i set event:Set defense to head *1 & arm *3 & shield *4 & boots *1

and defense still shows me '1'


I do not know how to sum ??up all the variables

[/QUOTE]
@delgado
replace your & by +, since they are numbersAphrodite2013-05-08 10:30:15
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,094
Reputation: 15,355


Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 20 guests