Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Hello.
I am looking for a script call that add an item in the victory reward screen.
There is only 3 place for loot and I wanted to add a condition during the battle that make possible
to add a "Gold Nugget", as a reward shown in the victory screen like a 4th loot.
But I feel it looks more complcated than a simple script call.

Thank you
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
290
Reaction score
73
First Language
English
Primarily Uses
RMXP
Code:
class Game_Troop
  def add_buff(index, param_id, turn)
    members[index-1].add_buff(param_id, turn)
  end
end

I added some -1 to the index in order to let you use the human readable index value instead of the computer one.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA
Hello.
I am looking for a script call that add an item in the victory reward screen.
There is only 3 place for loot and I wanted to add a condition during the battle that make possible
to add a "Gold Nugget", as a reward shown in the victory screen like a 4th loot.
But I feel it looks more complcated than a simple script call.

Thank you
Where you expect to put this script call if we were to provide one?
I feel like this needs more context than just "in victory reward screen".
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
I finaly dont think it's possible to do it that way.

May you show me where is the drop part of the script editor to take a look, please.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA
You probably better to create a new thread depends on what you prefer.
Are you looking for a script? RGSS3 request
Do you prefer to learn? Learning RGSSx.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA
I am trying to make a skill which needs to do the following.
Check if the target has state #158. If it has, do no damage.
If it hasn't, then inflict state #159 and do damage.

My problem is that my current formula does damage even when the state is present because I can't get my either/or bit sorted out.

Can anyone help me out?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,910
Reaction score
643
First Language
English
Primarily Uses
RMVXA
Can anyone help me out?
I think this will work.

if b.state?(158); dam = 0; else b.add_state(159); dam = a.atk * 4 - b.def * 2; end; dam
 
  • Like
Reactions: Kes

mylafter

I’m a creep... I’m a weirdo...
Veteran
Joined
Dec 30, 2012
Messages
196
Reaction score
176
First Language
English
Primarily Uses
N/A
Is there a way to make an events move route move 'up,down,left,right' more than once?
For example, a normal looking move route would look like:
> Move Up (x3)
> Move Right (x2)
>

I know I can just use a path finding script but it doesn't work with most of my other scripts.
Also, I posted this question in this thread because I figured it probably be easier to do this method through a script call.


EDIT: Ignore this post. I think it be smarter to post my question as its own script request thread instead.
 
Last edited:

Robert-Character Creator

Waiting for Replies
Veteran
Joined
Feb 8, 2014
Messages
523
Reaction score
231
First Language
English
Primarily Uses
RMVXA
Hello! I'm way out of my element here, as I'm usually completely incompetent at scripting, but I feel like I'm very close to success here.

My script call is thus:

Code:
$game_switches[0052] = [$game_map.events.values.select{|ev| ev.name.include?
("spikes_")}].all? { |event|
if $game_map.events[event].x == $game_player.x and $game_map.events[event].y ==
$game_player.y then $game_switches[0055] = true end}

What this should do is make an array (?) out of switch 52 containing all events with the string spikes_ in their name, then check each of those events to see if their x and y coordinates are the same as the players; if they are, turn switch 55 on. I know the syntax is correct, at least according to my online Ruby syntax checker... , however, I get an argument error (0 for 1) when running the code. Any clue what I'm doing wrong?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA
I need to do a 'Show Choices' via a script call, and I can't get my head around how exactly I am to use the script call in Archeia's thread.

She has this:
Code:
params = []
choices = []
choices.push("choice 1")
choices.push("choice 2")
params.push(choices)
params.push(0/1/2 this part is where you press cancel and which choice to default)
setup_choices(params)

I need to ask the player if they want to do something, with a straight Yes/No choice, and the cancel button defaulting to No.

Could someone show me how this is supposed to be set out?
Thank you very much.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA
I need to do a 'Show Choices' via a script call, and I can't get my head around how exactly I am to use the script call in Archeia's thread.

She has this:
Code:
params = []
choices = []
choices.push("choice 1")
choices.push("choice 2")
params.push(choices)
params.push(0/1/2 this part is where you press cancel and which choice to default)
setup_choices(params)

I need to ask the player if they want to do something, with a straight Yes/No choice, and the cancel button defaulting to No.

Could someone show me how this is supposed to be set out?
Thank you very much.
Code:
params = []
choices = []

choices << "Yes"
choices << "No"

params << choices
params << 2

setup_choices(params)
 
  • Like
Reactions: Kes

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
158
Reaction score
45
First Language
German
Primarily Uses
RMVXA
I am trying to figure out an actor's current graphics and respective indexes, and put those into variables. Something like "variable 1 == name of actor 1's sprite graphic", variable 2 the index, variable 3 the name of the face graphic, and variable 4 the index of that.

Example:
The second actor uses Magical Girl graphics, so for example they might use " $MC2T2Mahou". This is a mono-sheet, so of course the index here is always 0. But I still need a variable to take the name of the file. Is it possible? If so, how?

Thank you very much in advance.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA

GustavoF

Villager
Member
Joined
Oct 3, 2020
Messages
5
Reaction score
1
First Language
Portuguese
Primarily Uses
RMVXA
Hello, is there a way to change the item se by script call? (I know we can change it in database, but I really want to change it in an event)
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA
Hello, is there a way to change the item se by script call? (I know we can change it in database, but I really want to change it in an event)
There is, but the change won't be permanent. i.e, it resets once you restart the game. If you need it to be permanent, it needs an extra script. Are you ok with that?
 

GustavoF

Villager
Member
Joined
Oct 3, 2020
Messages
5
Reaction score
1
First Language
Portuguese
Primarily Uses
RMVXA
There is, but the change won't be permanent. i.e, it resets once you restart the game. If you need it to be permanent, it needs an extra script. Are you ok with that?
Thanks, I don't need it to be permanent.
 

Latest Threads

Latest Posts

Latest Profile Posts

I kind of want make a map that's just giant version of the player that's they're running around on. Either by stringing together multiple maps or just by shrinking the player sprite for those maps. Actually that might make a fun reveal... The player's on a normal looking map, but then as realization dawns on them it zooms out to show a much larger map that's a giant version of the player. :LZSexcite:
Do you like to practice level design? I do hahahaha! It's not from a specific game, it's just some tests...Fase 1.png
I really need a better indicator of where you can jump up and down though I feel... otherwise I like how this turned out for the first part of the first dungeon of the game.
@Shaz needs to make a website for his plugins. (it can be done easily for free with google sites.) I can't find a database of them anywhere!
Dion2.jpg

testing #2

Forum statistics

Threads
109,130
Messages
1,042,399
Members
141,628
Latest member
Ocarina654
Top