Item Script Call

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
534
Reaction score
868
First Language
English
Primarily Uses
N/A
ItemCallScript 2018/09/20

Creator name: Triacontane​

Introduction
Create an item or skill that will run any script when used.

When used on the menu screen, can be done without returning to the map screen. (without the use of common event)

Note: Knowledge of RGSS is required for use.

VX Ace Script Call Collection from RMN- https://forums.rpgmakerweb.com/index.php?threads/item-script-call.114399/#post-1010194

Instructions-
Specify the following in the item or skill note box:
<=(Script you want to run)=>

Example(If used, value [100] will be set to variable [1])
Code:
<=$game_variables[1] = 100=>
If the effect range is set for all allies and all enemies, the script will be executed for all targets.

The following variables and functions can be used in the script.
user : Item user
target : Item target

How to Use
Paste this script above Main.

Script

Credit and Thanks: Triacontane

Terms of Use
-
Free for commercial and non-commercial use.

License
-
MIT License: http://opensource.org/licenses/mit-license.php
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
4,638
Reaction score
5,279
First Language
Indonesian
Primarily Uses
RMVXA
What is the difference between using this script and write a custom script, like
Code:
def something
  $game_variables[1] = 100
end
And call the function in the formula notebox?
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
534
Reaction score
868
First Language
English
Primarily Uses
N/A
I'm not triacontane or that knowledgeable of RGSS.
Not so different than using a script call for-
Code:
$game_variables[1] = 100
I guess it's a matter of preference if someone want to use script call when using items or skills.

___

If anyone looking for a list of script call for VX Ace- Script Call Collection from RMN

Event Page 1

† Message † Party † Actor †
† Game Progression † Flow Control †

Event Page 2
† Movement † Timing † Picture and Weather †
† Character † Screen Effect † Music and Sounds †

Event Page 3
† Scene Control † Map † System Settings †
† Battle † Movie †

Miscellanous
† Other Useful Things! †

Source- https://rpgmaker.net/scripts/464/
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
107
Reaction score
24
First Language
German
Primarily Uses
RMVXA
Would this work with equipment? As in, the moment a piece of gear is equipped/uneqipped, the Common Event/Scriptcall runs without needing to go to map first?
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
534
Reaction score
868
First Language
English
Primarily Uses
N/A
This script works with item or skill. Equipment does not apply.
Can be done through parallel process event of conditional branch (page 2)
when an actor is equip with something then use script call.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,642
Reaction score
2,972
First Language
Tagalog
Primarily Uses
I think what Theo means is that since you can use script calls in the item/skills damage formula box by default, how is this different? Even without this script, you can make items/skills use script calls via the damage formula box, so why use this?

As for @Shiro-chan 's problem, as he/she said, the problem with Common Events is that they dont run by default in the menu. So a common event (even if parallel) to check the equipment will only happen on the map, not on the menu...

If you're fine with doing what you need via script calls, you can try this script: https://lescripts.wordpress.com/rgss3/equip-events/

Or if you want to do it via common events, get Tsukihime's Scene Interpreter script so that common events will run on the menu.
 
Last edited:

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
534
Reaction score
868
First Language
English
Primarily Uses
N/A
I forgot about the formula box..

Putting the script call in Note box for Item/ Skill is accessible than having to pick type of damage to put in script call for item/skills damage formula box which is an extra click.
 

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

Latest Threads

Latest Profile Posts

It's almost new year, again!
Succesfully finished a quest of saving my kitty who fell from a wall!

+25XP

MrKiwi leveled up!
MrKiwi learned how to save his kitty!
Final sprint for me, although a long one. If everything goes well, I'll graduate by the end of the year. Then I'll have to take the Bar classes and exams (4 months), then I'm off to practicing law (as an intern for 6 months, paid of course, then I'll be a full fledged attorney).
I think there is something wrong with my cat. He is acting CATatonic.
Want to find a quick answer? Say the wrong one and SOMEONE will fall all over themselves to correct you.

Forum statistics

Threads
93,572
Messages
913,581
Members
123,103
Latest member
AntonioXander
Top