Save-Point
Friend Death Status - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Friend Death Status (/thread-6930.html)



Friend Death Status - sandsand - 10-10-2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


This script adds a status if someone's friend dies, and takes it away if they come back alive. Use statuses that are set to go away at the end of battle.

Script


This section at the top is an example:
Code:
SG_Enemy_FriendDeathStatus = {
  1 => { 2 => 3, 3 => 4 },
  5 => { 5 => 3 }
  }
SG_Actor_FriendDeathStatus = {
  1 => { 8 => 13 }
  }

It works like this: DeadGuy'sID => { FriendID => StateID, ... }

From the example:
A ghost dying gives enemies 2 & 3 states
Enemy 5 dying gives any other enemy 5's poison
Arshes dying gives Hilda a state

Let me know if it doesn't work well or there's a bunch of bugs