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
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

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
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Wed May 08, 2013 9:20 am

Yes it works perfectly and your solution is true simple! thanks!
B
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

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
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

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
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093


Return to How do I....?

Who is online

Users browsing this forum: SoldjahBoy and 9 guests