Scripts / [QUESTION] Script activating another script?

Author
Message
Mrimtheleader1
7
Years of Service
User Offline
Joined: 9th May 2016
Location:
Posted: 7th May 2017 08:11
I was wondering if there's a way i can have the RPG SHOP script activate another script when the player buys something.

EXAMPLE: There is an RPG SHOP script. (OR IF ANYONE HAS A FREE SCRIPT I CAN PUT IN MY GAME) and there is a radar script, I want the player to be able to buy the radar and it'll appear on the screen.

Anybody know how i can do this?
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 7th May 2017 11:55
In the radar script, you could wrap the entire code block in an IF statement which checks to see if a variable is equal to 1

By default the variable will be set to 0, then when the player purchases the "radar" item, you could set this variable to 1

Login to post a reply

Server time is: 2024-04-16 16:40:16
Your offset time is: 2024-04-16 16:40:16