04-03-2010, 08:37 PM
I'm really not sure if I can help as I'm not too good of a scripter compared to the other guys, but I'm assuming he wants a script to do something to a particular map once.
What the scripter may need to do is create some sort of an instance variable which would act as an array, or maybe a hash. Yeah, maybe hashes would work better than arrays since they're more precise.
Afterwards, the scripter would need to create an if condition somewhere, which may look something like this (I could be very much wrong, as I'm pretty rusty in scripting):
Werehog5 just needs to tell us what script(s) he's using, that way it'll help us help him faster.
What the scripter may need to do is create some sort of an instance variable which would act as an array, or maybe a hash. Yeah, maybe hashes would work better than arrays since they're more precise.
Code:
@variable = {} #instance variable is a hash.
Afterwards, the scripter would need to create an if condition somewhere, which may look something like this (I could be very much wrong, as I'm pretty rusty in scripting):
Code:
if @variable{$game_map.map_id} != true
# The script does something here.
@variable[$game_map.map_id] = true
end
Werehog5 just needs to tell us what script(s) he's using, that way it'll help us help him faster.