Hello! First I wanted to say that i've been trying to learn/understand how to write rgss3 for a long time!
The videos you've made are extremely basic (which is what's great!) and have helped me to understand
what's actually happening in the scripts! I've never wrote a script before so I'm very noob about it still...
but your vids give me some hope!
I've made several games with vx ace already without any problem.. but this time around I'm attempting to write some
very simple scripts myself..instead of just importing other peoples scripts.
My Problem Is:
Whenever i follow along with with your vids everything works perfect.. but whenever I attempt to do my own thing
I get errors that crash my game! :/
I'm making a game that... well, I guess I'll skip the details lol... in one part of my game the player will be able to grow plants.
Planting the seeds, watering them & so on.
+++++++++++++++++++++++++++ Problem 1
I'm using "Galv's Event Spawn Timer" script to set a timer for the growing times...
so i set a variable in my script to hold the amount of time that "Galv's" timer will use...
In one event, i got it to work, but the variable i set always = 0 (even though i set it to 5 "seconds" at the moment in my script)..
So i guess I'm not understanding how to use variables properly! ??
I understand if you don't want to help with this one particularly because it's using someone elses script and you'd
probably have to study their script.
+++++++++++++++++++++++++++ Problem 2
And before you can water the plant you must refill the watering can... I'm attempting to use a script in a conditional branch to
check if the amount of water in the can ($game_variables[87]) is < the total that it can hold (which i set as a variable in my script).
I've attempted this "many" different ways.. but this last time I tried to use a class (the Game_Interpreter class) because in one of
your vids you said in order to use a script call you must use that class.. so anyways can you possibly help me to get this working??
PLEASE!!!
THE SCRIPT:
class Game_Interpreter
plant_growthtimer = 10 # The "Wait Time" while growing plants
wateringcan_total = 3 # The total amount of water that can be stored
def iswatercanfull()
return $game_variables[87] < wateringcan_total
end
end
THE CONDITIONAL BRANCH:
@>Conditional Branch: Script: iswateringcanfull() == true
#Show message "true" here.
:Else
#Show message "false" here.
: Branch End