Author Topic: General RGSS/RGSS2/RGSS3 Help  (Read 133764 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 #60 on: April 09, 2009, 11:21:14 PM »
actually this works tested

(click to show/hide)

Yea but I wanted it for tilesets not maps.

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #61 on: April 10, 2009, 12:58:32 AM »
there for tilesets but it goes by the name of it not the id
(click to show/hide)
& blizz"s unofficial h window
(click to show/hide)
« Last Edit: April 10, 2009, 01:25:05 AM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20015
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #62 on: April 10, 2009, 10:23:36 AM »
I posted a version for public use of a horizontal window several times already and that's not the one. -_-
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 #63 on: April 25, 2009, 08:08:14 PM »
Okay nother question guys sorry :^_^':

How do we check if an item has an element checked? I'm making this Augmentation system like off of fable. Also how do we add an element or remove it from an item?

Offline fugibo

  • World Conqueror
  • Chaos User
  • ******
  • Posts: 1966
  • LV: 44
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #64 on: April 25, 2009, 08:14:39 PM »
The Help File Helps

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 #65 on: April 25, 2009, 08:17:59 PM »
I see how to add elements but I still dont see how to check if it has an element checked.'

Ok I still dont know how to add them or see if one is checked. I only know how to set the elements in an array
« Last Edit: April 25, 2009, 09:48:11 PM by game_guy »

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 #66 on: April 29, 2009, 12:05:05 AM »
More help :<_<: probably getting sick of me huh? >.<

Anyways couple of questions

How do I wait frames in rgss and how do I randomize variables in rgss?

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #67 on: April 29, 2009, 12:13:45 AM »
there is no wait command in rgss ur best bet is to use a variable so put in update that if  @wait_count > 0 @wait_count = - 1 and for random u use rand(n)  so u use n as the range
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(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 #68 on: April 29, 2009, 12:19:50 AM »
There has to be a wait command because The event editor has a Wait command and it waits the amount of frames you put in.
(click to show/hide)
Each event command has a line of script behind it.

But for the random thing use
Code: [Select]
Rnd(8)and it'll randomize a number between 0-8?

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #69 on: April 29, 2009, 12:33:47 AM »
yea put
Code: [Select]
rand(8)
& thats how they do the wait command the have a @wait_count in there update method
look at the update method in scene battle
« Last Edit: April 29, 2009, 12:34:56 AM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(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 #70 on: May 15, 2009, 12:01:49 AM »
New question.

I want to be able to find the percentage of somethign how would I do so? Wouldnt i use this?
Code: [Select]
$value = 1000 %

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #71 on: May 15, 2009, 12:03:45 AM »
A percent in math is...

Value / Max Value * 100

Gosh... so simple math =X

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20015
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #72 on: May 15, 2009, 12:05:22 AM »
This will be always 0 if Value and MaxValue are both integers. Better use

Value  * 100 / MaxValue
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 #73 on: May 15, 2009, 12:06:02 AM »
There is no max value. I want to be able to find what 1% = compared to a number. Like so...

1% of 100 = 1
1% of 1000 = 10
etc....

There is no ma value to divide by thats why I was asking.....
« Last Edit: May 15, 2009, 12:07:38 AM by Youngster Gi Gi »

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #74 on: May 15, 2009, 12:09:12 AM »
DON'T YOU KNOW YOUR MATH!?!? >8U

1% = 0.01
10% = 0.1
etc

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 #75 on: May 15, 2009, 12:14:42 AM »
That's only for the number 1. Try getting the single percent for this than

23385

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #76 on: May 15, 2009, 12:18:01 AM »
You mean 23385% of something?

233.85

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 #77 on: May 15, 2009, 12:28:29 AM »
Oh so I just move the decimal is all?

Thank you aqua thats all I wanted to know but

What if I dont know what the value will be? How would I get that mathematical in RGSS. I'm going to make Gold Boosting Equipments

and I wanted an equation that did that so than I can take the percentage from the armor and add it to the gold amount
« Last Edit: May 15, 2009, 12:29:53 AM by Youngster Gi Gi »

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: General RGSS/RGSS2/RGSS3 Help
« Reply #78 on: May 15, 2009, 12:33:58 AM »
Where val = the % of the gold increase you want
Code: [Select]
gold_increase_percent = val.to_f / 100

Then add that as a % modifier to the amount of gold you receive.
« Last Edit: May 15, 2009, 12:35:48 AM by Elite Four Aqua »

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 #79 on: May 15, 2009, 12:35:25 AM »
Thank you so much aqua. *powers up*

Just what I needed to finish this. If I do release the script (might be private for my game not sure) You'll be on the special thanks.