Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

22 Pages V  « < 15 16 17 18 19 > »   
Reply to this topicStart new topic
> Achievements, Add/manage/display achievements (like WoW/xBox) or use as questtracker
datonare
post Sep 7 2010, 01:44 PM
Post #321


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Undisclosed




Awesome, that fixed it! However, once I ran the game and entered the Achievements menu, I got an error on line 1294 (sure to vary.) This was the code for that line:: fill = cl1.to_f / cl2.to_f and the error was undefined method. I assumed it was something to do with the progress bar, so I just set Auto_Bar_On to false, and it bypassed the error, but I thought I would bring it up to you anyway.


Thanks again for the timely response, I was so bummed when I was getting errors with this script since I wanted to use it so very badly. lol
Go to the top of the page
 
+Quote Post
   
niteaura
post Sep 7 2010, 09:37 PM
Post #322


Level 1
Group Icon

Group: Member
Posts: 6
Type: Writer
RM Skill: Beginner




QUOTE (SojaBird @ Sep 8 2010, 01:10 AM) *
Well I'm not sure 'bout the menu you have now.
You could get the things you need from the Achievements and put them in your custom menu in some way I guess...

Though you'll have to figure that out by yourself, cause I'm not known with the menu you're using smile.gif


G'luck,
SojaBird.


okay...thanks..I'll try my best...
Go to the top of the page
 
+Quote Post
   
SojaBird
post Sep 8 2010, 12:57 AM
Post #323


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




@datonare
Yea that problem is to do with the progression bar.
It's not rather good jet, so I might just need to fix that smile.gif


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
yuzippy
post Sep 8 2010, 02:29 PM
Post #324


I need sustenance!
Group Icon

Group: Revolutionary
Posts: 181
Type: Developer
RM Skill: Skilled




I am loving the idea of Big Spender achievements. I would also be intrested to see if you could make it record time, so like play the game for one hour... and BOOM Achieve, 3 hours, 10 hours. Lol. But maybe not possible.


__________________________
What am I?








Studio Yellow
Go to the top of the page
 
+Quote Post
   
datonare
post Sep 9 2010, 01:38 PM
Post #325


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Undisclosed




Hi, Soja, it's me again lol sad.gif

No errors this time, but when I started a new game and entered the "Achievements" through the menu, it was blank. I'm probably over looking something small here... do you know what could be the issue? Btw, when I start my game, there's a placeholder character that gets removed just after the intro. Are the achievements "given" to the first party member by any chance? Here's my code:

Edit: I should really try everything before I make a post. lol I'm using a custom title screen by Moghunter. I'm assuming it's not starting something up, that the game would normally start up, that is required for the Achievements to be pulled up? When I remove the custom title screen script, the achievements show up.

This post has been edited by datonare: Sep 9 2010, 02:01 PM
Go to the top of the page
 
+Quote Post
   
Dark Cape
post Sep 12 2010, 12:14 PM
Post #326


Level 1
Group Icon

Group: Member
Posts: 13
Type: Developer
RM Skill: Intermediate




Hey there. Wonderful script, although I found an error whilst testing it out. When I completed the achievement I set, I went to the menu and opened up the achievements tab. I then moved right to the complete section, only to find an error. This is the error:

Script 'Scene_Achievements' line 1305: NoMethodError occurred.
undefined method '+' for nil:NilClass

This is where I think the problems are:

def next_enabled(minus = false)
pos = enables.index(@index)
if minus; rTurn = (pos == 0) ? enables[enables.size - 1] : enables[pos - 1]
else; rTurn = (pos == enables.size - 1) ? enables[0] : enables[pos + 1]
end
return rTurn
end

or

Start_Achievements = [
#["Name", "Description", *Icon, *Hidden, *Hide_Icon, *Completed]
["Claria Complete", "Complete your first dungeon.", 15, false, false, false]

]

Start_Buyables = [
#[Price, "Name", "Description", Icon]
]

Start_Conditions = [
#["Name", "Condition"]
["Claria Complete", "var(2) >= 1"]

]

Start_Rewards = [
#["Name", "Reward"]
["Claria Complete", "item(33, 4)"]

]

Start_Points = [
#["Name", Points]
["Claria Complete", 20]

]

Start_Labels = [
#["Name", "Label"]
["Claria Complete", "Dungeon"]

]

Start_Colors = [
#["Name", Color.new(red, green, blue, alpha = 255)]
["Claria Complete", Color.new(255, 200, 0, 0)]

]

If possible could it be solved? Thanks.


__________________________
Current Project(s):

Darkened Travels (VX) (Unconfirmed Name) (Frozen)
The Paraverse (VX) (Frozen)
Heroes (Rm2k3)

Percentage Completion:

7%
1%
2%


VX or XP or Rm2k3?
Decisions, Decisions...
Go to the top of the page
 
+Quote Post
   
SojaBird
post Sep 12 2010, 01:22 PM
Post #327


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




@yuzzippy
Yea so the BigSpender and such isn't that big of a problem.
The time thing requires a bit more but that's also quite easy to do I guess.
Expect them in the next update...

@datonare
Good you solved it.
I guess the menu thing doesn't do the right start-up then, wich is quite weird... oh well.

@Dark Cape
I've looked at the thing you though caused the problem.
I can not find anything odd though.
It might be the position thing wich isn't set, though that's quite odd.
I'll figure it out before a next update wink.gif


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
Dark Dragon 998
post Sep 12 2010, 02:02 PM
Post #328



Group Icon

Group: Banned
Posts: 0
Type: None
RM Skill: Undisclosed




Cool Script!


__________________________
Banned for spamming the main site.
Go to the top of the page
 
+Quote Post
   
Dark Cape
post Sep 13 2010, 08:38 AM
Post #329


Level 1
Group Icon

Group: Member
Posts: 13
Type: Developer
RM Skill: Intermediate




I've researched into it a bit more. Turns out it's only when all of the achievements are completed the error occurs.


__________________________
Current Project(s):

Darkened Travels (VX) (Unconfirmed Name) (Frozen)
The Paraverse (VX) (Frozen)
Heroes (Rm2k3)

Percentage Completion:

7%
1%
2%


VX or XP or Rm2k3?
Decisions, Decisions...
Go to the top of the page
 
+Quote Post
   
SojaBird
post Sep 13 2010, 11:24 AM
Post #330


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




@Dark Dragon 998
Tnx.

@Dark Cape
Ah oke I'll have a look at that then.
Should be something quite stupid I guess, but it needs a fix smile.gif
Tnx for noticing.


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
Dark Dragon 998
post Sep 13 2010, 01:58 PM
Post #331



Group Icon

Group: Banned
Posts: 0
Type: None
RM Skill: Undisclosed




This Is A NICE SCRIPT!!!

starwars.gif


__________________________
Banned for spamming the main site.
Go to the top of the page
 
+Quote Post
   
Destinynite1
post Sep 27 2010, 09:47 PM
Post #332


Level 12
Group Icon

Group: Revolutionary
Posts: 195
Type: Developer
RM Skill: Masterful




When I start my game, I get a syntax error as soon as I select new game. This is the first and only time its done since I added it and its only done it since I decided to use a switch as a condition. Here's what I have so far.

CODE
#["Name", "Description", *Icon, *Hidden, *Hide_Icon, *Completed]
["Big Kids", "Level up actor to level 10.", 2814, false],
["Slime Hunter", "Kill 5 Slime.", 742, false],
["Money!!", "Have 500 gold or more.", 1970, false],
["Forgotten Hero", "Locate a forgotten tomb.", 3587, false]
]

Start_Buyables = [
#[Price, "Name", "Description", Icon]
[20, "Otherworldly", "Create a Phantasmal Longsword.", 3498],
[1, "Tokens!!!", "Collect all three Slime tokens.", 2953],
[10, "Forgotten Hero", "Locate a forgotten tomb.", 3587]
]


Start_Conditions = [
#["Name", "Condition"]
["Big Kids", "lvl(-1) >= 10"],
["Money!!", "gold >= 500"],
["Slime Hunter", "kills('Slime') >= 5"],
["Otherworldly", "item(295)==1"],
["Tokens!!!", "item(41)==3"],
["Forgotten Hero", "switch(64), true"]
]

Start_Rewards = [
#["Name", "Reward"]
["Big Kids", "exp(-1, 2000)"],
["Slime Hunter", "item(2, 4)"],
["Otherworldly", "gold(55000)"],
["Money!!", "weapon(5, 1)"],
["Tokens!!!", "item(11, 2)"],
["Forgotten Hero", "var(38, 10000)"]

]

Start_Points = [
#["Name", Points]
["Big Kids", 5],
["Slime Hunter", 10],
["Money!!", 10],
["Tokens!!!", 5],
["Otherworldly", 50],
["Forgotten Hero", 75]
]

Start_Labels = [
#["Name", "Label"]
["Otherworldly", "Items"],
["Slime Hunter", "Battle"],
["Big Kids", "Character"],
["Money!!", "Items"],
["Tokens!!!", "Items"],
["Forgotten Hero", "Items"]


Its under "Start_Conditions" and its "Forgotten Hero." I have no idea what I'm doing wrong. I'm following everything from the script instructions, looked at various posts and still can't find my answer =(

EDIT: No need for the "true" statement at the end -.-


__________________________
Current Project


1. Legends of the Four

Database - 75%
Scripting -55%
Storyline - SCRAPED (OPEN WORLD)
Character Skills - 100%
Monster Skills - 60%
Item Creation Skills- 45%
Everything else - No idea xD

Go to the top of the page
 
+Quote Post
   
yogzgm
post Oct 6 2010, 07:00 AM
Post #333



Group Icon

Group: Member
Posts: 1
Type: Event Designer
RM Skill: Beginner




the demo link is broken
help plz ohmy.gif
Go to the top of the page
 
+Quote Post
   
SojaBird
post Oct 6 2010, 09:24 AM
Post #334


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




You might want to check some posts back.
I though a fellow and dear other user posted an other link to a working demo wink.gif

I'll see if I can get that link and then I'll put it up the OP.


Greatzz,
SojaBird.


EDIT: Found it


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
Lockheart
post Oct 7 2010, 07:11 PM
Post #335


Level 9
Group Icon

Group: Revolutionary
Posts: 136
Type: Developer
RM Skill: Advanced




Working Link here

If anyone else needs the demo.
Go to the top of the page
 
+Quote Post
   
tehpwnerer
post Oct 11 2010, 09:33 PM
Post #336


Level 4
Group Icon

Group: Member
Posts: 45
Type: Musician
RM Skill: Skilled




Hello I have been an Avid user of most of your scripts and as usual This is one of the greats..
Although I have a Problem its not with the basic or even the Achievement script at all..
I was going to add a ring menu to my latest project along with these achievements and Since
im not much of a scripter (yes even after all this time) i was wondering if you could show me/help with Modifying someone elses script to Display achievements as well?

I dont know if its allowed or not but heres the Script i would like to use maybe you can modify it yourself if you had time?
Or just Explain what i could do?
!
begin
Script Criado por DouglasMF das comunidades VilaMakers Online e RPG Maker Brasil
Com base no script Ring Menu feito por XRXS, Dubealex e Hypershadow180

-- Instru?s --
Para instalar este script coloque ele entre os scripts Main e Scene_Cameover

=end
#==============================================================================
# Scene_Menu
#------------------------------------------------------------------------------
# Esta classe controla o conjunto de objetos que forma o RingMenu
#==============================================================================

class Scene_Menu < Scene_Base
#--------------------------------------------------------------------------
# Inicializa
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
#Initialize Menu
#--------------------------------------------------------------------------
def start
super
@spriteset = Spriteset_Map.new
@gold_window = Window_Gold.new(0, 360)
@win_local = Window_Local.new(0,0)

@status_window = Window_MenuStatus.new(160, 0)
px = $game_player.screen_x - 16
py = $game_player.screen_y - 28
@ring_menu = Window_RingMenu_Comando.new(px,py)
@status_window.z = @ring_menu.z + 20
@status_window.visible = false
end
#--------------------------------------------------------------------------
# Terminate Objects
#--------------------------------------------------------------------------
def terminate
super
@spriteset.dispose
@ring_menu.dispose
@gold_window.dispose
@win_local.dispose

@status_window.dispose
end
#--------------------------------------------------------------------------
# Atualiza os objetos do menu
#--------------------------------------------------------------------------
def update
super
@ring_menu.update
@gold_window.update
@win_local.update

@spriteset.update
@status_window.update
if @ring_menu.active
update_command_selection
elsif @status_window.active
update_actor_selection
end
end
#--------------------------------------------------------------------------
# Atualiza o comando e a sele? do menu
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::cool.gif #<---This is a B
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @ring_menu.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @ring_menu.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @ring_menu.indice
when 0
$scene = Scene_Item.new
when 1,2,3
start_actor_selection
when 4
$scene = Scene_File.new(true, false, false)
when 5
end
end
if Input.trigger?(Input::UP) or Input.trigger?(Input::LEFT)
Sound.play_cursor
@ring_menu.girar(3)
return
end
if Input.trigger?(Input::DOWN) or Input.trigger?(Input::RIGHT)
Sound.play_cursor
@ring_menu.girar(4)
return
end
end
#--------------------------------------------------------------------------
# Inicia a sele? de personagem
#--------------------------------------------------------------------------
def start_actor_selection
@ring_menu.active = false
@status_window.visible = true
@status_window.active = true
if $game_party.last_actor_index < @status_window.item_max
@status_window.index = $game_party.last_actor_index
else
@status_window.index = 0
end
end
#--------------------------------------------------------------------------
# Finaliza a sele? de personagens
#--------------------------------------------------------------------------
def end_actor_selection
@ring_menu.active = true
@status_window.active = false
@status_window.visible = false
@status_window.index = -1
end
#--------------------------------------------------------------------------
# Atualiza a sele? de personagens
#--------------------------------------------------------------------------
def update_actor_selection
if Input.trigger?(Input::cool.gif #<---This is Also a B
Sound.play_cancel
end_actor_selection
elsif Input.trigger?(Input::C)
$game_party.last_actor_index = @status_window.index
Sound.play_decision
case @ring_menu.indice
when 1
$scene = Scene_Skill.new(@status_window.index)
when 2
$scene = Scene_Equip.new(@status_window.index)
when 3
$scene = Scene_Status.new(@status_window.index)
when 4
$scene = scene_Materia.new(@materia_window.index)
end
end
end
end

#==============================================================================
# Window_RingMenu_Comando
#------------------------------------------------------------------------------
# Esta classe cria o ring menu.
#==============================================================================

class Window_RingMenu_Comando < Window_Base

DurIni = 30
DurMov = 15
RaioAnel = 64
ModoIni = 1
ModoEsp = 2
ModoMD = 3
ModoME = 4
SE_Inicio = ""

attr_accessor :indice
#--------------------------------------------------------------------------
# Inicia o objeto
#--------------------------------------------------------------------------
def initialize(centro_x,centro_y)
super(0, 0, 544, 416)
self.opacity = 0
self.contents.font.size = 16
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
@item_name = [s1,s2,s3,s4,s5,s6]
@item_max = 6
@item_icon = [144,128,40,137,149,112]
@item_hab = [true,true,true,true,true,true]
@indice = 0
@cx = centro_x - 12
@cy = centro_y - 12
inicia_menu
refresh
end
#--------------------------------------------------------------------------
# Atualiza o objeto
#--------------------------------------------------------------------------
def update
super
refresh
end
#--------------------------------------------------------------------------
# Atualiza o objeto
#--------------------------------------------------------------------------
def refresh
self.contents.clear
case @modo
when ModoIni
refresh_inicio
when ModoEsp
refresh_espera
when ModoMD
refresh_mover(1)
when ModoME
refresh_mover(0)
end
sw = self.contents.width
rect = Rect.new((@cx - ((sw-32)/2))+12, @cy - 40, sw-32, 32)
self.contents.draw_text(rect, @item_name[@indice],1)
end
#--------------------------------------------------------------------------
# Abre o menu
#--------------------------------------------------------------------------
def refresh_inicio
d1 = 2.0 * Math:tongue.gifI / @item_max #The charactors missing here are a ":" and a "P"
d2 = 1.0 * Math:tongue.gifI / DurIni #The charactors missing here are a ":" and a "P"
r = RaioAnel - 1.0 * RaioAnel * @passos / DurIni
for i in 0...@item_max
j = i - @indice
d = d1 * j + d2 * @passos
x = @cx + ( r * Math.sin( d ) ).to_i
y = @cy - ( r * Math.cos( d ) ).to_i
desenha_item(x, y, i)
end
@passos -= 1
if @passos < 1
@modo = ModoEsp
end
end
#--------------------------------------------------------------------------
# Atualiza o menu
#--------------------------------------------------------------------------
def refresh_espera
d = 2.0 * Math:tongue.gifI / @item_max #The charactors missing here are a ":" and a "P"
for i in 0...@item_max
j = i - @indice
x = @cx + ( RaioAnel * Math.sin( d * j ) ).to_i
y = @cy - ( RaioAnel * Math.cos( d * j ) ).to_i
desenha_item(x, y, i)
end
end
#--------------------------------------------------------------------------
# Movimenta o menu
#--------------------------------------------------------------------------
def refresh_mover(modo)
d1 = 2.0 * Math:tongue.gifI / @item_max #The charactors missing here are a ":" and a "P"
d2 = d1 / DurMov
d2 *= -1 if modo != 0
for i in 0...@item_max
j = i - @indice
d = d1 * j + d2 * @passos
x = @cx + ( RaioAnel * Math.sin( d ) ).to_i
y = @cy - ( RaioAnel * Math.cos( d ) ).to_i
desenha_item(x, y, i)
end
@passos -= 1
if @passos < 1
@modo = ModoEsp
end
end
#--------------------------------------------------------------------------
# Desenha o icone
#--------------------------------------------------------------------------
def desenha_item(x, y, i)
if @indice == i
self.cursor_rect.set(x-4, y-4, 32, 32)
draw_icon(@item_icon[i], x, y, @item_hab[i])
else
draw_icon(@item_icon[i], x, y, @item_hab[i])
end
end
#--------------------------------------------------------------------------
# Inicia o menu
#--------------------------------------------------------------------------
def inicia_menu
@modo = ModoIni
@passos = DurIni
if SE_Inicio != nil and SE_Inicio != ""
Audio.se_play("Audio/SE/" + SE_Inicio, 80, 100)
end
end
#--------------------------------------------------------------------------
# Gira o menu
#--------------------------------------------------------------------------
def girar(modo)
if modo == ModoMD
@indice -= 1
@indice = @item_hab.size - 1 if @indice < 0
elsif modo == ModoME
@indice += 1
@indice = 0 if @indice >= @item_hab.size
else
return
end
@modo = modo
@passos = DurMov
end

end

#==============================================================================
# Scene_Title
#------------------------------------------------------------------------------
# Faz modifica?s nescessarias para a exibi? do nome do mapa
#==============================================================================

class Scene_Title
alias load_database_old load_database
def load_database
load_database_old
$data_mapinfo = load_data("Data/MapInfos.rvdata")
end
end

#==============================================================================
# Window_Local
#------------------------------------------------------------------------------
# Cria a janela responsavel pela exibi? do nome do mapa
#==============================================================================

class Window_Local < Window_Base
#--------------------------------------------------------------------------
# Inicia o objeto
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 160, 96)
refresh
end
#--------------------------------------------------------------------------
# Atualiza o objeto
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 32, "Local:")
self.contents.font.color = system_color
self.contents.draw_text(4, 32, 120, 32, $data_mapinfo[$game_map.map_id].name, 2)
end
end


Thank you for your time you are Awesome =)


__________________________
Go not where there is as path and follow someone else, go instead where there is no path and leave a trail...

Go to the top of the page
 
+Quote Post
   
DoubleElite
post Oct 15 2010, 05:36 PM
Post #337


Level 3
Group Icon

Group: Member
Posts: 36
Type: Developer
RM Skill: Skilled




Well, I've been using the old version of this, then I saw the new one. So I was testing it out, and changed only a few things.
Can't figure out what's wrong....
Code is attached.

This post has been edited by DoubleElite: Oct 15 2010, 05:36 PM
Attached File(s)
Attached File  Achievements.txt ( 77.86K ) Number of downloads: 3
 


__________________________


Userbars

Go to the top of the page
 
+Quote Post
   
SojaBird
post Oct 16 2010, 03:15 AM
Post #338


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




@tehpwnerer
Oke so yea I had look at the script and it's pretty hard to use.
Mostly just 'cause you can't realy add other options with ease...
Anyways, you could try and ask the maker of that script to implent the function to add items yourself more easy.
The thing you should add is something like $scene = Scene_Achievements.new
Sorry for the "not-realy-helping-out" sollution.

@DoubleElite
That's pretty odd.
Could you try the new script in a clear project and see what that does for you?


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
DoubleElite
post Oct 17 2010, 10:30 AM
Post #339


Level 3
Group Icon

Group: Member
Posts: 36
Type: Developer
RM Skill: Skilled




QUOTE (SojaBird @ Oct 16 2010, 03:15 AM) *
@DoubleElite
That's pretty odd.
Could you try the new script in a clear project and see what that does for you?


Greatzz,
SojaBird.

I did, same thing sad.gif


__________________________


Userbars

Go to the top of the page
 
+Quote Post
   
SojaBird
post Oct 17 2010, 10:34 AM
Post #340


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




That's SOOOOO odd!!
Since the script works perfectly with my new projects...

Are you using rpg maker VX?
Perhaps try the demo wink.gif


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   

22 Pages V  « < 15 16 17 18 19 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th June 2013 - 12:16 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker