Getting ride of a script for good
#1
Lets say i put a script in the beginning of the game right where you start. so after you leave the place, you go back to it and the same script replays. How do i make so the script on plays once no matter what? SOS!!!Shocked
Reply }
#2
Moving this to RGSS support.
Reply }
#3
Could you elaborate a little? Are you saying you've made an event and you don't want that event to repeat itself, or you've called a script? Try and explain a little more so someone can help you. Take screen shots if necessary.
Reply }
#4
It seems like he uses a script that supposed to do something to an event, or something graphical, and he want's to get rid of it afterwards, only making it appear whenever he wants to.
I'm sorry, but it some scripts (Most likely on almost all of them), you can't get rid of them unless the script has the instruction on how to remove it, usually done by a script command I believe.
Best bet is to work your way around it or remove it, unless someone has a bright idea.
Reply }
#5
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.
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.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 3 352 11-22-2024, 07:02 PM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,779 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 16,184 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,512 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,844 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,631 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,403 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 10,079 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 8,810 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 7,331 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: 1 Guest(s)