how would I go about using the call script to add 1 to a the variable with the same [id] as the event it is located in?
example:
*****************************
event :01
call script- add 1 to variable[event_id]
*****************************
and what would happen is the variable with the id ==[01] would have 1 added to it.
Using the same call script again...
*****************************
event: 36
Call script- Add 1 to variable[event_id]
*****************************
would add 1 to the variable with the id==[36]
The application of this would be for a farming type system.
I would want a common event that essentially says.
When you interact with a plant, it will add 1 to the variable with the same id as the event the common event was called from.
thanks in advance!
example:
*****************************
event :01
call script- add 1 to variable[event_id]
*****************************
and what would happen is the variable with the id ==[01] would have 1 added to it.
Using the same call script again...
*****************************
event: 36
Call script- Add 1 to variable[event_id]
*****************************
would add 1 to the variable with the id==[36]
The application of this would be for a farming type system.
I would want a common event that essentially says.
When you interact with a plant, it will add 1 to the variable with the same id as the event the common event was called from.
thanks in advance!