Script Call Support Boards

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
289
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
5,791
Reaction score
6,763
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
5,791
Reaction score
6,763
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,299
Reaction score
11,715
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,798
Reaction score
615
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
225
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,299
Reaction score
11,715
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
5,791
Reaction score
6,763
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
153
Reaction score
42
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
5,791
Reaction score
6,763
First Language
Indonesian
Primarily Uses
RMVXA

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

YAY!!! My third help Guide STEAM integration in MV (High performance) has been posted!

Both the polls for the 3rd Original Character Contest ended with 5th place ties! So let's break those ties. Vote now for your favorite of the ones tied!


werewolf and his friends added!!

YAY! I just posted my third Guide! Setting up STEAM Integration in RPG Maker MV WITH updated NW.js (huge performance update)
rux
MUCLSES!!! :epicface: :epicface:

Forum statistics

Threads
107,512
Messages
1,030,161
Members
139,637
Latest member
Kloonoa
Top