Save-Point
Randomly Targetted Skills - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Randomly Targetted Skills (/thread-2735.html)



Randomly Targetted Skills - RPG Advocate - 03-03-2008

Randomly Targetted Skills
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script allows you to designate skills to have additional target types as follows:

Scope 8: Random number of allies
Scope 9: Random number of enemies
Scope 10: Random number of allies (HP 0)
Scope 11: One random ally
Scope 12: One random enemy

Since these new target types can't be set in the editor, you will need to use scripts to change the scope of the appropriate skill to the desired value. A simple script call of: $data_skills[1].scope = 8 would set the 1st skill (Heal) to affect a random number of allies[i].

The formula is simple: $data_skills[[i]skill ID
].scope = scope


Demo
>Click<


Script
Randomly Targetted Skills