Author Topic: General RGSS/RGSS2/RGSS3 Help  (Read 135264 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #100 on: June 04, 2009, 04:29:27 AM »
Another question...

How would we turn an events Self Switches off via script call?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #101 on: June 04, 2009, 09:50:28 AM »
Code: [Select]
$game_self_switches[[MAP_ID, EVENT_ID, 'ID']] = false
MAP_ID = a number
EVENT_ID = a number
ID = A, B, C or D
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #102 on: June 05, 2009, 11:08:45 PM »
Code: [Select]
$game_self_switches[[MAP_ID, EVENT_ID, 'ID']] = false
$game_map.need_refresh = true

MAP_ID = a number
EVENT_ID = a number
ID = A, B, C or D

Fixed :)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #103 on: June 05, 2009, 11:18:51 PM »
He didn't say he wanted to apply it to the map immediately. :P *hides*
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #104 on: June 05, 2009, 11:19:35 PM »
Hmm very true thanks both of you guys *double lv up*

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #105 on: June 08, 2009, 12:38:52 AM »
Another question guys.

How would we go deleting a save file via script?

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #106 on: June 08, 2009, 02:05:40 AM »
Code: [Select]
File.delete('Filename.rxdata')
:)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #107 on: June 08, 2009, 02:06:06 AM »
Thanks aqua *lv's up*

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #108 on: June 10, 2009, 10:11:11 AM »
Another question....well ok two.

First one. How do we change the player's speed via script?

Second. Could someone explain how the zoom_x and zoom_y works and tell me how to use it please?

Thanks guys in advance!

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #109 on: June 20, 2009, 09:50:47 PM »
Another Question....
How is everything setup in the Enemie's Element Ranks? Or the Element Efficiancy is what its called in teh database.
I tried printing it and it didnt work just printed <Table0xsome random numbers here>

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #110 on: June 20, 2009, 10:57:48 PM »
print it for me an i'll interpret , just up load a screen shot of the print
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #111 on: June 20, 2009, 11:40:14 PM »
Here it is

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #112 on: June 21, 2009, 12:08:41 AM »
oh... well never mind that means nothing to me. how are you printing it?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #113 on: June 21, 2009, 12:12:58 AM »
print $data_enemies[1].element_ranks

then I tried
print $data_enemies[1].element_ranks.to_s

And that still didnt work :P I dont know what else to do

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #114 on: June 21, 2009, 12:16:42 AM »
It might be that there's too much stuff to print and can't fit on a print window?

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #115 on: June 21, 2009, 12:37:39 AM »
Code: [Select]
p $data_enemies[1].element_ranks[1]tell me what that dose
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #116 on: June 21, 2009, 12:39:14 AM »
Well see in the thing right here

This is the script that controls $data_enemies
(click to show/hide)

I wanted to find out how to add elements into there element ranks and change the efficiency and stuff. I wanted to make a boss in my game where once you hit it with whatever element it'll change to that element and absorb all of that element until its hit with a different element.

EDIT: @reyx you posted before me :P

EDIT 2: It printed one which doesnt seem right...

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #117 on: June 21, 2009, 12:49:26 AM »
now fell me what this dose
Code: [Select]
p $data_enemies[1].element_ranks[2]
if it prints 3 this i know how it works
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #118 on: June 21, 2009, 12:50:00 AM »
yup it prints 3 if you can help me with this I'd be so grateful ryex!

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #119 on: June 21, 2009, 12:54:54 AM »
ok so  it is a table class, Don't ask me whay they just did it that way it works like this p

$data_enemies[<id>].element_ranks[<elamit id>] => rank
where rank is 0, 1, 2, 3, 4, or 5 which means A, B, C, D, E, or F from the database
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)