Help - Search - Members - Calendar
Full Version: Achievements
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
SojaBird
Darn you cached me again on not doing what I said.

I'm going away for 2 weeks form the 7th so expect the script to be online before that.
Thanks for the post and remembering me smile.gif


Greatzz,
SojaBird.
Freforii
Hi im using www.rpgrevolution.com/forums/index.php?showtopic=15881 ,And i cant seem to call the Achievements menu right, When i press ESC it opens the menu, then when i go to my Achievements icon, it pulls up the system menu (goto title,Shutdown,cancel) but when i press ESC again it open the achievements menu.

Anyway of fixing this? So when i open the menu and use the icon it open the menu insted of pressing ESC 2 times?
SojaBird
Hey Freforii,

What call-script function are you using to open up the Achievement-scene?
I'll also have a look at the script thing you're using to find out what's going on smile.gif


Greatzz,
SojaBird.
Xenoyia
Call me stupid but HOW do you use this? there is not a tutorial anywhere, and I don't get how to make an achievement appear when a switch is turned on... Please help.

I have tried:

Achief.condition("Start the game!", "switch(0081)")
Achief.condition("Start the game!", "switch(0081)==true")
Achief.condition("Start the game!", "switch(0081)=true")
Achief.condition("Start the game!", "switch(0081) true")
Achief.condition("Start the game!", "switch(0081)true")

But none work.. I only get a syntaxerror..
SojaBird
Hey,

Yea true there isn't a tutorial yet, though you can be lucky if any script has any tutorial.
You could have checked the demo (wich I reconment) and check the events there.
I'm sure there's a event with something like the thing you're looking for that helps you out.

Anyways, the correct call-script to use is
CODE
Achief.condition("Start the game!", "switch(81)")
or
CODE
Achief.condition("Start the game!", "switch(81) == true")

Hope it works smile.gif


Greatzz,
SojaBird.

ps. I'll adress the problem you've seen to occure by using 0081 instead of just 81.
As for I think 0081 should also work, I'll update the script so it works with this.
Lockheart
Any chance of the new version coming out soon? the 7th is getting closer and closer!
SojaBird
MMm hey you're pretty right Lockheart...
Darn I might just fire up my laptop today to see if I can do it.

Hope to disable my adiction for MineCraft for a bit then tongue.gif


Greatzz,
SojaBird.
Xenoyia
QUOTE (SojaBird @ Aug 4 2010, 04:59 PM) *
Hey,

Yea true there isn't a tutorial yet, though you can be lucky if any script has any tutorial.
You could have checked the demo (wich I reconment) and check the events there.
I'm sure there's a event with something like the thing you're looking for that helps you out.

Anyways, the correct call-script to use is
CODE
Achief.condition("Start the game!", "switch(81)")
or
CODE
Achief.condition("Start the game!", "switch(81) == true")

Hope it works smile.gif


Greatzz,
SojaBird.

ps. I'll adress the problem you've seen to occure by using 0081 instead of just 81.
As for I think 0081 should also work, I'll update the script so it works with this.


Thank you very much! That helped alot biggrin.gif
SojaBird
Oke so as promised...

I've uploaded the newest version of the script (v4.0.b BETA).
Also the demo of that script is uploaded but aparently I didn't choose my upload site correctly, it can only be downloaded 10x so be quick.
I'm not sure if the demo is newer than the v4.0 BETA version, or if it only has the new script in place (wich can be downloaded the usual way).

I hope you enjoy the script and let me know if there is anything you'd like to see or changed or what so ever smile.gif
Oh and also positive replies are welcome tongue.gif hehe.

Yea so I'm away for 2 weeks now so cya'll later smile.gif


Greatzz,
SojaBird.
Lockheart
Awesome work done on the achievements script Sojabird. Loving the new style even more then the older version.

Personally can't wait to see your factions add on for this script!
SojaBird
Hey ho,

Thanks!
If you know the new things wich weren't in the prior version, could you please state them for me?
Cause I kinda lost track of it due the long delation time.

Anyways, thanks again.
The new layout will work better with the tabs for as far my concern.
Though offcoarse there's still the option to use the other layout version (just go in the config).

'Bout the Faction add-on, I'm not sure @ what position this is on the list, though I think I'll be able to make this pretty quick.

Have fun with the current version biggrin.gif


Greatzz from Ireland,
SojaBird.
velonius
I don't know if this is asked before so sorry if i ask it again tongue.gif
but is it possible to make an achievement that involves defeating an amount of monsters: like if i win 100 battles i get an achievement?

Greetz,
Velonius
Lockheart
QUOTE (SojaBird @ Aug 8 2010, 06:42 AM) *
Hey ho,

Thanks!
If you know the new things wich weren't in the prior version, could you please state them for me?
Cause I kinda lost track of it due the long delation time.

Anyways, thanks again.
The new layout will work better with the tabs for as far my concern.
Though offcoarse there's still the option to use the other layout version (just go in the config).

'Bout the Faction add-on, I'm not sure @ what position this is on the list, though I think I'll be able to make this pretty quick.

Have fun with the current version biggrin.gif


Greatzz from Ireland,
SojaBird.


Well some of the new things was the progress bar, which is great for those achievements that require a more then one thing to be obtained, say finding 1000 chest. Everything is much more cleaner looking, at least player side. The new catagories. The ablility to have achievements based on enemies killed/fought. just to name a few that I'm personally using.

QUOTE (velonius @ Aug 8 2010, 04:28 PM) *
I don't know if this is asked before so sorry if i ask it again tongue.gif
but is it possible to make an achievement that involves defeating an amount of monsters: like if i win 100 battles i get an achievement?

Greetz,
Velonius

Yes you can have achievements like that.
CODE
- battle(result)    : >=, <=, ==, != # (0: win, 1: escape, 2:lose, 3:all)
- kills('note_tag') : >=, ==, !=     # (use Achief(note_tag) in the notefields)
SojaBird
Thanks for the list.
When I return back to Holland in 2 weeks I'll update the OP with more details.
Also thanks for helping out with explaining the battle ting.
So yea it's totaly awsome and new, the feature to count different things based on battle-data or monster killing smile.gif

Enjoy again all.


Wet greatzz from Ireland,
SojaBird.
Deathtouch
..Could I ask a favor?

~~
could someone please send me a copy of the newest version, as well as basic instructions on how to use it... I'll be so grateful ^,..,^
SojaBird
Hey hey,

If you meen the demo... Is it out of downloads allrealy?
Darn!!
Perhaps Lock wants to put the newest version on a better host smile.gif that would be nice.
If not tongue.gif then wait till I've returned home from Ireland.


Greatzz,
SojaBird.

Ps the new script is also avalible without the demo as a text file.
Lol though just remembered that I didn't made it a clean version so sorry about that also.
leongon
I have been using www.fileden.com so far so good, no password input, no confirmation, no wait time, no... anything, you get the download directly.
Lockheart
QUOTE (SojaBird @ Aug 10 2010, 04:22 AM) *
Hey hey,

If you meen the demo... Is it out of downloads allrealy?
Darn!!
Perhaps Lock wants to put the newest version on a better host smile.gif that would be nice.
If not tongue.gif then wait till I've returned home from Ireland.


Greatzz,
SojaBird.

Ps the new script is also avalible without the demo as a text file.
Lol though just remembered that I didn't made it a clean version so sorry about that also.


The demo has the newest script currently in it, but if Deathtouch or anyone else cannot download it from Soja's host I could try rehosting it or something for others, to give an extra mirror download.
Deathtouch
QUOTE (Lockheart @ Aug 10 2010, 04:39 AM) *
The demo has the newest script currently in it, but if Deathtouch or anyone else cannot download it from Soja's host I could try rehosting it or something for others, to give an extra mirror download.



Yea, it appears that the current download is all locked up... can't get it from there.

thnx in advance though. ^,..,^
SojaBird
Yea it appeard that my host only allowed a max amount of 10 downloads.
It would be awsome if you, Lockheart, could get an other mirror smile.gif

Tnx in advance.


Greatzz,
SojaBird.
Lockheart
Done, hopefully this works better, if not let me know and I'll see what I can fix

Download Demo
Deathtouch
Yup Yup Yup...

works.. thank you.

once I get back into the scripting stuff.. I'll be able to start helping out around here...
but as it stands now, I'm gonna be asking for alot of help.


sorry in advance for the possible nubby questions. ^,..,^
SojaBird
Thanks Lock,

You've been realy helpfull in this time of abcence, of me being @Ireland.
If any1 needs help, I will be checking ever day till the 13e, not sure for a week after that.
Anyways, so if you need help, just post.
I'm sure I or some1 else (Lockheart perhaps smile.gif ), can help you keep going for a while biggrin.gif


Greatzz,
SojaBird.
Deathtouch
Hey, should I upload a copy of the demo to my mediafire just to have a backup copy, incase that link goes down?

^,..,-
SojaBird
Hey,

Thanks for the offer but I think the one from Lockheart will do fine untill my return in about 1 week.
Thanks though wink.gif


Greatzz,
SojaBird.

Ps. I will move to an other place next morning and am not sure if there's a internetconnection there.
Let's hope there is, but sure I'm not.

Enjoy!
kako92
Hey Soja
Can you make something like the ps3 trophies system?
SojaBird
Hey there kako:p

Tell me how that system works and I'll see if I can do something with it smile.gif
Also, any1 familiar with Minecraft?
I'm thinking of making such a itemcrafting system for VX.
Wha do you think 'bout it?


Greatzz,
SojaBird.
Deathtouch
such as it takes "one of these, two of this and five of these" and you can make "this" ?

Guild Wars for example, like the armor crafting?

if so, I'm wondering if a "storage/bank" script is possible so your not packin all the mats at all times.

V,..,V
kako92
well, first let me say that my English sucks.

The system could be like this image:



When you change the command of the list, the information also changes.
When you unlock the trophy, a window will be showed in the screen.
Like the Achievements...

and this is the example:



The trophy can be unlocked by switchs, scripts commands or anything else.

If you need more informations, please PM me.
Lockheart
QUOTE (kako92 @ Aug 13 2010, 05:39 PM) *
well, first let me say that my English sucks.

The system could be like this image:



When you change the command of the list, the information also changes.
When you unlock the trophy, a window will be showed in the screen.
Like the Achievements...

and this is the example:



The trophy can be unlocked by switchs, scripts commands or anything else.

If you need more informations, please PM me.


Other then the layout, the term Trophy and the large icons, this script already does all of that. The trophies/achievements can be unlocked by variables, switches and any other means you can come up within the script itself.
kako92
You don't understood.
The trophy system is different.
I tested the Achievement script, and it dont is what I need.
Read my other post if you can't understand the differences.
leongon
What this guy above wants is an achievement list that works like the save files info, showing the description in other window. The actual achievement system show the titles and immediately below the description.

If you really are a scripter, as your info says, you can modify this yourself easily to make it work as you want, unless your scripting power is fake.
SojaBird
@death
No it's not realy like that but more diffecult...
First of, check out the game tongue.gif it's awsome.
So the crafting there happens in a grid where you have to put sertain items at specific places to craft something.
It's pretty innovative smile.gif

@kako
Basicly as lockheart sais, thats basicly all that the script does except the layout and iconsize.
I will have a look at it when i'm back home.

@lock
Tnx for the help.
For now this will be my final reply for a week (except if theres i'net at my next location).
So yea thanks for helping out wink.gif kuddos for you.


Greatzz,
SojaBird.
kako92
QUOTE
If you really are a scripter, as your info says, you can modify this yourself easily to make it work as you want, unless your scripting power is fake.


I'm a scripter, but i'm not Sojabird or Yanfly.
I just need some help of the Sojabird to fix my script.
And I believe that my abilities in RGSS2 are not in discution.

If the Sojabird decide make the script, ok this is awesome, if else, I just need more time and practice to make for myself.

Sorry for my english again.
leongon
Discution is when two or more people debate about a same theme: I questioned your ability, and you replyed about it... so your ability is under discussion. It may be off-topic but that is another problem.

The fact is: A "Skilled" scripter should easily rearrange the way a script shows the info it manages.

Whatever, Sojabird, even if he didn't improved his New Menu Items as I requested, looks like a very helpful person, so he probably will help you on your customizee request soon.
kako92
I don't need your explanation.
I only requested to the Sojabird, you are losing your time saying things of I know.
So fuck you and your idealism.
leongon
I'm not charging you for lending my opinions on your skill, you don't have to worry about receiving or rejecting them, they just are there for free.

In any case, I have not insulted you, and I still hope Sojabird helps you. Have a nice day wink.gif
Kronker
Hey!

Im getting error when I try to make a script like this one.

["Slime Collector!", "Collect at least 10 Lesser Slime!", 147, false, false],

I've put it under the Start_Achievments.

Im am an extreme newbie when it comes to scripting., is anyone able to explain
why I get an error through this?
I made an item wich has the name " Lesser Slime "
How do I get this to work?
Easy explanation please!! sweat.gif
Lockheart
Kronker can you tell me the error and show me the line your are getting the error from?

Your code line works for me.
Kronker
QUOTE (Lockheart @ Aug 18 2010, 03:47 PM) *
Kronker can you tell me the error and show me the line your are getting the error from?

Your code line works for me.



Ok, so this is the error:
http://img822.imageshack.us/img822/6434/syntaxerror.png

And this is the script line:
http://img838.imageshack.us/img838/8559/syntaxerror.jpg

Any ideas? confused.gif
leongon
Put a comma at the end of your 'learning quick'.

Every data in an array needs to be sepparated by a comma, even if the data is another array:

[[1,2,3],[4,5,6],[7,8,9]]
is the same as:
[
[1,2,3],
[4,5,6],
[7,8,9]
]



you have:
[
[1,2,3],
[4,5,6]
[7,8,9],
]
that is the same as:
[[1,2,3],[4,5,6][7,8,9],] and this [4,5,6][7,8,9] is a syntax error.
Kronker
QUOTE (leongon @ Aug 19 2010, 06:34 PM) *
Put a comma at the end of your 'learning quick'.

Every data in an array needs to be sepparated by a comma, even if the data is another array:

[[1,2,3],[4,5,6],[7,8,9]]
is the same as:
[
[1,2,3],
[4,5,6],
[7,8,9]
]



you have:
[
[1,2,3],
[4,5,6]
[7,8,9],
]
that is the same as:
[[1,2,3],[4,5,6][7,8,9],] and this [4,5,6][7,8,9] is a syntax error.



Thank you so much! Works perfect now! Thanks a bunch! cool.gif
kako92
QUOTE (leongon @ Aug 14 2010, 07:49 PM) *
I'm not charging you for lending my opinions on your skill, you don't have to worry about receiving or rejecting them, they just are there for free.

In any case, I have not insulted you, and I still hope Sojabird helps you. Have a nice day wink.gif


I'm sorry leongon.
I Had a bad day When this Happened.
I apologize.

But i don't need more the sojabird help, I did the script.
Kronker
Ok now I got another problem!
The last time I got the achievment to be displayed in the Achievment Menu in-game. But when I finally gathered 10 Lesser Slime
nothing happend!

What do I need to do to get the script to work?
yuzippy
Hey Soja! It is me! Just wanted to give a thanks for the update, even though now I can't remember what it was for lol. No I haven't stopped making my game!!!!!!!!

!yuz!
SojaBird
Jeey back smile.gif

Oke so yea stuff's going on since I was away I see.
Peeps, don't get mad at each other, it's no use but I see things have been sorted out now, thanks for that.

So yea, the new update... I'll do some updating on the OP later, after I forfill all my other duties called mail and such *sigh*.
I hope you still enjoying the script.

See you back here sooner biggrin.gif


Greatzz,
SojaBird.
bazbroketail
I am having some slight difficulties with the updated version. The demo works, but after I copy the script over, and make the changes I need and start adding the achievements from the original script (which never gave me any problems before), I get this error (picture attached). That batch of lines come out to this, with the line "fill = cl1 .to_f / cl2.to_f" showing the error. Anyone else experience this or know how to fix this? Thanks.

CODE

def draw_progression(data, y)
cl = data.progression
cl2 = cl[1]
cl1 = data.condition_ready? ? cl2 : eval(cl[0])
fill = cl1.to_f / cl2.to_f
text = sprintf("%s/%s", cl1, cl2)
x = @border
draw_progress_bar( fill, x, y)
draw_progress_text(text, x, y)
SojaBird
Hey there,

All I can do right now is tell you what causes the error, not how to solve it (jet).
As it appears, some date that is processed in the drawing of the progression of a achievement, isn't sent through correctly.
The error you get, just tells that the script can't do something with a value, since it should be a specific other type of value.
In this case the progressionbar needs data based on a number (like 1, 2, 6.7, -1200.3 and such).
The data that is putted in to the function to process that info, is a boolean value (that's TRUE or FALSE (false in this case)).
So there must have happend something with a part that doesn't work.
Perhaps, and I'm not sure of this, you have tried to make a progression-bar for a achievement with condition wich only has a true/false state.
That might be the problem.

To help you out a bit more, past and spoiler your config part of the script (all I'm interested in is the conditions actualy, still though).
Might be a scripting thing I hadn't overseen that it could happen, but it could also just be a bit of wrong input smile.gif

Hope we can solve this together soon.


Greatzz,
SojaBird.
bazbroketail
Hmmm, alright, well this first part will be my current configurations. Everything else works, and the script works when I set the Auto bar to false. For showing you, I changed it to true though.
Configurations
#-------#
# Menu: #
#-------#
Menu_Enabled = true
Menu_Location = 4
Menu_Title = "Achievements"
Menu_Counting = true

#---------------------#
# Achievements Scene: #
#---------------------#
# 0-1
Layout_Style = 0

Scroll_Speed = 5
Border_Size = 5

Auto_Scroll = true
Auto_Scroll_Speed = 0.1
Time_Span = 4

Alphabetic_Achiefs = false

#-- Progression --#
Auto_Bar_On = true

# Color.new(red, green, blue, alpha = 255)
Bar_Back_Color = Color.new(170, 170, 220)
Bar_Fill_Color_1 = Color.new(255, 102, 0)
Bar_Fill_Color_2 = Color.new(204, 255, 51)

#-- Tab Control --#
Name_Tabs = []
Tab_Row_Amount = 1
All_Tab_Name = "All"
Hidden_in_All = true
Completed_in_All = false
Completed_in_Tabs = false
Enable_Completed = true
Completed_Tab = "Completed"
Enable_Hidden = false
Hidden_Tab = "Unknown"
Alphabetic_Tabs = true
Enable_if_Empty = false
Label_Colors = {
#"Labelname" => Color.new(red, green, blue, alpha = 255),
}

# Color.new(red, green, blue, alpha = 255)
BG_Color = Color.new(0, 190, 255, 100)
Border_Color = Color.new(0, 0, 0)
Text_Color = Color.new(255, 255, 255)

Title_Size = 20
Description_Size = 20

#----------------------#
# Hidden Achievements: #
#----------------------#
Hidden_Title = "???"
Hidden_Description = "This is a secret achievement."
Hidden_Icon = 3295

#----------------------#
# Achievements alerts: #
#----------------------#
Enable_alerts = true

module SE_Found
Name = "Bell"
Volume = 50
Pitch = 0
end

module SE_Complete
Name = "decide11"
Volume = 100
Pitch = 0
end

# normal/up/down
alert_Display = "normal"
alert_Opacity = 255
# left/center/right
alert_Position = "center"
alert_Width = 400
alert_Reward_Width = 300
alert_Font_Size = 16

Complete_Text = "ACHIEVEMENT UNLOCKED '%s'"
Reward_Text = "'%s'"
Find_Text = "Achievement '%s' was found!"
Hidden_Found = "You found a hidden achievement!"

# for normal display
Time_Span_Text = 3

Display_StartUps = false
Reward_Prototype = false

#---------------#
# Message Tags: #
#---------------#
Message_Points_Tag = "AP"
#Use \Message_Points_Tag
Message_Kills_Tag = "AK"
#Use \Message_Kills_Tag[note_tag]
Message_Battle_Tag = "AB"
#Use \Message_Battle_Tag[0(win)/1(escape)/2(lose)/3(all)]

#---------------#
# Point System: #
#---------------#
Use_Point_System = false
Point_Name = "point"
Point_Font_Size = 12

Shop_Buy = "Buy"
Shop_Reveal = "Reveal"
Common_Reveal_Cost = 5

Status_Text = "Completed: %s"

#-- Exchange Control --#
Show_Rate_Bar = false
Exchange_Rate = "Rate: %s points to %s gold"
Amount_Dispaly = "%s > %s"
Accept_Exchange = "Accept"
Set_Exchange = "Set"
Cancel_Exchange = "Cancel"


Mmkay, now here are my achievements, and then the conditions. The only one so far that I have that uses the progression bar is the one called "Monster Hunter" just so you know, and so far it only has one condition for being completed. It will have 9, but I haven't made the other achievements for it yet.
Achievements/Conditions
#-----------#
# Start-up: #
#-----------#
Start_Achievements = [
#["Name", "Description", *Icon, *Hidden, *Hide_Icon, *Completed]
["You Got Learned", "Learn about Attributes via Attribute Tutorial.", 141],
["A Taste of Danger", "Encountered your first enemy and were victorious.", 1],
["Brawler", "Fought over 100 battles.", 3368],
["Tyranny's End", "Put an end to Mosan's rule.", 2172],
["An Awakening Destiny", "Completed Chapter 1.", 3645],
["Just Looking For Trouble", "Fought over 1,000 battles.", 3378],
["Penny Pincher", "Saved over 1,000,000 gold.", 147],
["Annihilated Ariman", "Fought and defeated Ariman.", 3637],
["Monster Hunter", "Discovered and defeated all 9 mega monsters.", 3266, true, true],
["Time to Grind", "Have one ally reach level 100.", 3383],
["Sacrifice", "Closed the portal and saved Aeliria, but at what cost?", 3349],
["No More Grinding", "Have one ally reach the maximum level, 255.", 3383],
["World Traveler", "Visited every location in Aeliria.", 153],
["Completionist", "Completed the game 100%.", 3627],
]

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

Start_Conditions = [
#["Name", "Condition"]
["You Got Learned", "switch(801) ==true"],
["A Taste of Danger", "switch(802) ==true"],
["Brawler", "battle(0) ==103"],
["Tyranny's End", "switch(55) ==true"],
["An Awakening Destiny", "var(547) ==9"],
["Just Looking For Trouble", "battle(0) ==1000"],
["Penny Pincher", "gold >= 1000000"],
["Annihilated Ariman", "kills('Ariman') ==1"],
["Monster Hunter", "completed('Annihilated Ariman')"],
["Time to Grind", "lvl(-1) ==100"],
["Sacrifice", "var(549) ==100"],
["No More Grinding", "lvl(-1) ==255"],
["World Traveler", "var(548) ==35"],
["Completionist", "var(547) ==100"],
]


I hope that helps out. If we can't figure out what's wrong, no worries. At least the other features work great, and I am still gonna use this script cause of the awesomeness! Thanks again for the help my friend.
SojaBird
First off, great use of the script.
I realy love your names and such biggrin.gif

Now for the problem...
I don't think it's like say you doing something wrong, it's more that the script doesn't work as it should I guess.
Right now I'm thinking of setting up an easy web-based or downloadable page to configure all achievements in a more graphical and userfriendly enviroment that the current methode.
It'll require a quite big amount of script changing and other java scripting to make this work, though I'll see it as a challenge.

So for your problem... I'll have a look at it for a next update and see if I can figure it out.
For now, just try to turn the auto-thing off then and use the other way to set it or wait smile.gif

Hope you'll have fun still.


Greatzz,
SojaBird.

ps. What do peeps think of the idea?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.