General RGSS/RGSS2/RGSS3 Help

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

Previous topic - Next topic

Jackolas

QuoteI'm making a title screen for GAX. And he wants the map as the background. Done. But he also wants events to execute while its on the map. How would I do this?


got also as far to add a map in the background. but failed to get stuff going on the map.
so if you figure it out can you plzz share it?

G_G

I figured it out. I'm going to ask GAX first if he cares if its publically released. I think a map as background would be interesting. Eh give me a few hours so I ca ask him when he gets on.

Blizzard

Better use a map as title screen. Seph made a script like that.
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

Its okay Blizz, I already got it. Shows map as background, and events work and everything.
And ew, Seph's stuff uses SDK.

Blizzard

Then make it better / an SDK-free version. xD
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

# By Murasame assassin 
begin
$data_actors        = load_data("Data/Actors.rxdata")
    $data_classes       = load_data("Data/Classes.rxdata")
    $data_skills        = load_data("Data/Skills.rxdata")
    $data_items         = load_data("Data/Items.rxdata")
    $data_weapons       = load_data("Data/Weapons.rxdata")
    $data_armors        = load_data("Data/Armors.rxdata")
    $data_enemies       = load_data("Data/Enemies.rxdata")
    $data_troops        = load_data("Data/Troops.rxdata")
    $data_states        = load_data("Data/States.rxdata")
    $data_animations    = load_data("Data/Animations.rxdata")
    $data_tilesets      = load_data("Data/Tilesets.rxdata")
    $data_common_events = load_data("Data/CommonEvents.rxdata")
    $data_system        = load_data("Data/System.rxdata")
  $defaultfonttype = "Tahoma"
  $defaultfontsize = 22
  $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables     = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party         = Game_Party.new
    $game_troop         = Game_Troop.new
    $game_map           = Game_Map.new
    $game_player        = Game_Player.new
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    $game_map.autoplay
    $game_map.update
    $scene = Scene_Map.new
  Graphics.freeze
  while $scene != nil
    $scene.main
  end
  Graphics.transition(20)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} not found.")
end


Tada...

G_G

I already have it made >__> why werent you on an hour ago XD

G_G

Okay I'm making a mouse plugin for Babs, really what I need to know is how to detect if the mouse is on an impassible area or an event

Blizzard

Better check the sprite. Or you can translate the mouse coordinates into pixel coordinates * 4 and using $game_map.display_x and $game_map.display_y you can match it with event real_x and real_y considering that an event side is 128x128 in that case.
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.

Jackolas

how can I check the exp that was needed for the current lvl.
example:

Character is lvl 25
got a total of 500 exp

I want to know how I can check how much exp was needed to get to lvl 25 (for example 475 exp)

Blizzard

This has the EXP needed for that level.

@exp_list[level] # inside Game_Actor
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.

Jackolas

probably because of my crap scripting skills:

undefined method '[]' for nil:NilClass

G_G

place this code in your script
class Game_Actor
  attr_accessor :exp_list
end

Jackolas


G_G

Works for me. You have to place this in a new script or in yours.
class Game_Actor
  attr_accessor :exp_list
end

Call the actors exp with this
$game_actors[id].exp_list[level]

Jackolas

nvm.. just noob scripting on my part

G_G

I know we can use dll's in RGSS but can we use dll's coded in c#? If so how do we call the dll and call a method? I want to experiment with something.

Blizzard

You need to "Add a reference" in your C# project to the DLL.
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.

nathmatt

January 14, 2010, 07:59:26 am #378 Last Edit: January 17, 2010, 10:54:26 am by nathmatt
ok im trying to move the placement of the minimap in  blizz-ABS i moved it before but cant remember how

edit:might have helped to say it was blizz-ABS minimap
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


Blizzard

Change x and y coordinates in the class Minimap.
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.