equip and unequip stuff from the heros

Started by Apidcloud, March 26, 2011, 10:13:46 am

Previous topic - Next topic

Apidcloud

Hey XD
I've been quite busy with school but I came back to RM yesterday :D

So, Im trying to figure out how I equip or unequip weapons or whatever from the hero.

I've been trying to use command_319 from the Interpreter but no results at all..

appreciated
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

G_G

There are event commands for this. 3rd page, 1st column, 12th button down.

Apidcloud

Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

G_G

Then use the build int method already.
$game_actors[actor_id].equip(equip_type, id)

Equip Type can be
0: Weapon
1: Shield
2: Head
3: Armor
4: Accessory

ID is the id of the weapon/armor in the database.
Set id to 0 if you want to remove the equipment.

Apidcloud

March 26, 2011, 12:06:26 pm #4 Last Edit: March 26, 2011, 12:17:17 pm by Apidcloud
Thanks a lot


etc:
Can you say me how did u figure that out?
I really want to know how to figure what that parameters are XD
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

G_G

Go into Game_Actor. Look for the line "def equip"

Apidcloud

lol XD I forgot to check Game_Actor <.<
Well, thanks a lot really xd


My question was about Interpreter.. xD
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit

G_G

You really can't call interpreter methods through a script call. Well you can, but setting parameters isn't easy without other scripting knowledge on modifying the interpreter.