Item Script Call

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
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?
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/
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?
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.
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.
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.

Original thread: https://forums.rpgmakerweb.com/threads/item-script-call.114399/