Save-Point
Weight Equip System and Limit - 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)
+------ Forum: New Functionality/Features Scripts (https://www.save-point.org/forum-99.html)
+------ Thread: Weight Equip System and Limit (/thread-6718.html)



Weight Equip System and Limit - Samo the thief - 01-29-2007

Weight Equip System and Limit
V 1.0
By Samo, the thief.
Jan 29 2007


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.


Simulating the Black isle games (like Icewind Dale, Baldur's Gate), this
script makes weapons and armors have his own weight, and actors have a
limit of weight depending on their strenght.



SCREENIES:
----------
No, because it doesn't needs too much. It only has two more window that shows weight, and limit.


CODE:
-----
here it is:

CODE


INSTRUCTIONS:
-------------

-PLace this script above main to work.
-Search these lines:

Code:
@WEAPONS_WEIGHT = {


and another one:
Code:
@ARMORS_WEIGHT = {


Complete the hash(this variable) with these things:


Code:
item_id =>  weight

either weapon or armor. don't forget the comma(,) after each value, but not in the last one.



-Search this another line:

Code:
plus_str = 0.5


put the number you want there. the strenght of the actor will be
multiplied by this number. EX:
actor's strenght = 30
30 * 0.5 = 15 KG of limit.

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Features:

- Each armor and weapon has his own weight. In this way, you can
limit the items the actor wear, depending on his strenght.

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


Possible Bugs:
--------------
-Let's say you put like initial items to an actor that are too heavy for him,
but he wears them instead. Try to only give but don't equip the items. let the
player equip the items instead.

-The script Takes base strenght , so states don't bug it.


-This script won't work with equip battle system.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Enjoy the script and give me the credit. Replies please! What do you think of this?

Samo, the thief.