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
287
Reaction score
71
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,592
Reaction score
6,522
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,592
Reaction score
6,522
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,712
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,660
Reaction score
563
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
516
Reaction score
220
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,712
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,592
Reaction score
6,522
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

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,088
Members
137,585
Latest member
Reversinator
Top