RPG Maker Forums

Hello,

we would like to know if there's a way to equip a weapon or armor, according to what the "hero" is currently wearing (equipping). :p

For example, if our hero is equipping the weapon with ID n. 100 we want that, via script, our hero changes the weapon automatically to a new weapon with the ID 200.

If he's wearing weapon id120 we'd like that, after call script, he wears weapon id220, if 121:221 and so on...

What we tried to do is manipulate the id number of the weapon the hero is equipping through this script:

1. Create Variable Operation called:  0061:weaponid

    Operand: SCRIPT $game_actors[1].equips[0].id

2. In the event we put a call script:

    add_weapon($game_variables[61],1)

This actually works but if we add a costant to the $game_variable, the game crashes ex. add_weapon($game_variables[61]+100,1)

+100 represents the increase rate of our weapon id, which means that old weapon should be replaced with a new weapon which can be found at the position +100 in the database

The return error is:

Script 'Game Interpreter' line 1411: NoMethodErrorOccured. Undefined method 'note' for nil:NilClass

Please help us!!!!!! :D :D :D

We will pay u with lots of beeers!

Lots of...

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top