General RGSS/RGSS2/RGSS3 Help

Started by G_G, March 04, 2009, 12:14:28 am

Previous topic - Next topic

G_G

Another question...

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

Blizzard

$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 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

Aqua

Quote from: Blizzard on June 04, 2009, 03:50:28 am
$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 :)

Blizzard

He didn't say he wanted to apply it to the map immediately. :P *hides*
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


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

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

G_G

Hmm very true thanks both of you guys *double lv up*

G_G

Another question guys.

How would we go deleting a save file via script?

Aqua


G_G


G_G

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!

G_G

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>

Ryex

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.<br /><br />DropBox, the best free file syncing service there is.<br />

G_G


Ryex

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.<br /><br />DropBox, the best free file syncing service there is.<br />

G_G

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

Aqua

It might be that there's too much stuff to print and can't fit on a print window?

Ryex

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.<br /><br />DropBox, the best free file syncing service there is.<br />

G_G

Well see in the thing right here

This is the script that controls $data_enemies
Spoiler: ShowHide
module RPG
 class Enemy
   def initialize
     @id = 0
     @name = ""
     @battler_name = ""
     @battler_hue = 0
     @maxhp = 500
     @maxsp = 500
     @str = 50
     @dex = 50
     @agi = 50
     @int = 50
     @atk = 100
     @pdef = 100
     @mdef = 100
     @eva = 0
     @animation1_id = 0
     @animation2_id = 0
     @element_ranks = Table.new(1)
     @state_ranks = Table.new(1)
     @actions = [RPG::Enemy::Action.new]
     @exp = 0
     @gold = 0
     @item_id = 0
     @weapon_id = 0
     @armor_id = 0
     @treasure_prob = 100
   end
   attr_accessor :id
   attr_accessor :name
   attr_accessor :battler_name
   attr_accessor :battler_hue
   attr_accessor :maxhp
   attr_accessor :maxsp
   attr_accessor :str
   attr_accessor :dex
   attr_accessor :agi
   attr_accessor :int
   attr_accessor :atk
   attr_accessor :pdef
   attr_accessor :mdef
   attr_accessor :eva
   attr_accessor :animation1_id
   attr_accessor :animation2_id
   attr_accessor :element_ranks
   attr_accessor :state_ranks
   attr_accessor :actions
   attr_accessor :exp
   attr_accessor :gold
   attr_accessor :item_id
   attr_accessor :weapon_id
   attr_accessor :armor_id
   attr_accessor :treasure_prob
 end
end


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...

Ryex

now fell me what this dose
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.<br /><br />DropBox, the best free file syncing service there is.<br />

G_G

yup it prints 3 if you can help me with this I'd be so grateful ryex!

Ryex

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.<br /><br />DropBox, the best free file syncing service there is.<br />