#how to make custom shop with custom coins that can me more than 1000?
1 messages · Page 1 of 1 (latest)
💀
How
lets have an example
you guys use built in coins right
then instead of using it
could we just replace them by a number variable -n to n
create a variable by pressing the data button while in script mode
create a number variable name it whatever you want
for an example make it name "coins"
aight so we had coins variable now
then how could we get coins and the variable changes?
well
for an example
ill make it changes variable by killing an enemy
from 0 coins
after i kill an Actor
it changes the variable by 2
at the moment we had 2 coins
so we had 2 ways to change the variable
- create a script at when target is destroyed inside the melee component of a melee weapon
or
- create a script at when destroyed of an actor (enable it at the gear icon of basic attributes)
inside the script we had
set (variable) + 2
if you havent know
to get the (variable)
get the global variable attribute in the operation section
drag it outside
click it and choose the coins variable
then drag them to the set attribute command