RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RMVX] Increase MP using script code?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 72
Black Onslaught
Hello folks!!
I was using the SBS Configurations and I found this line:
Code: [Select]
#--------------------------------------------------------------------------
 # ? Script Operation Settings
 #--------------------------------------------------------------------------
  # Type - Always "script"
  #
  # Inserts a simple script code into the action sequence. In the sample,
  # where it says p=1 can be replaced with any script. Character strings
  # and anything beyond functions will not work. (?)
  # ?              ??  Type   
  "TEST_SCRIPT"   => ["script", "
 
  p = 1
 
  "],
Then I'm trying to do this trick on the battle scene.
My basic attacks do more than 1 hit, they do 2 or more hits based on the skill and character, not a problem it is all working fine. On my project, when you deal damage with your basic attack, you gain SP (Spiritual Points) and with that you can execute more powerful skills, without bein conserned about loss of SP like magicians, here we go.
When they deal damage, I want the actor to gain 5~15 SP when the attack is dealed, so I've been thinking if there is some way to write a script code on this Script Operation Settings that charge the hero SP! Something like:

Code: [Select]
#--------------------------------------------------------------------------
 # ? Script Operation Settings
 #--------------------------------------------------------------------------
  # Type - Always "script"
  #
  # Inserts a simple script code into the action sequence. In the sample,
  # where it says p=1 can be replaced with any script. Character strings
  # and anything beyond functions will not work. (?)
  # ?              ??  Type   
  "Hero 1 SP"   => ["script", "
 
  "code that charges 5~15 SP to Hero 1"
 
  "],

"Hero 2 SP"   => ["script", "
 
  "code that charges 5~15 SP to Hero 2"
 
  "],

Then:

Code: [Select]
"NORMAL_ATTACK_HERO1"          => ["PREV_MOVING_TARGET","WPN_SWING_V","OBJ_ANIM_WEIGHT","One Wpn Only",
"Hero 1 SP","16","Can Collapse","FLEE_RESET"],


"NORMAL_ATTACK_HERO2"          => ["PREV_MOVING_TARGET","WPN_SWING_V","OBJ_ANIM_WEIGHT","One Wpn Only",
"Hero 2 SP","16","Can Collapse","FLEE_RESET"],

So, you guys know what I can write on the Script Operation Settings??
Thanks alot!!
« Last Edit: March 16, 2013, 02:35:51 AM by Foghart »