Jump to content
Audrey

How to add or remove equipment of actor with a script call?

Recommended Posts

Say I'm working with a weapon, which its slot id is 0.

Let's say I want to add weapon 1 and then I want to remove weapon 1 from actor 1.

We've got $game_party.lose_item($data_weapons[id], amount, include_equip = true/false)

but I want to remove a piece of equipment like you can with an event but be able to use variables with a script call version.

We've also got change_equip(slot_id, $data_weapons[item_id]) but idk about that

 

Edit--

It was

$game_actors[x].change_equip(slot, $data_weapons[0])

to remove, and to add, just replace 0 with a weapon number. So, solved.

Edited by Audrey

Share this post


Link to post
Share on other sites

I'm not a mod myself.. But..

I don't think this is the right section for this.

This section is for Ace scripts that people have made that you need support with or have a question about.

 

I guess General might be better. There used to be a script call board somewhere too, though I can't seem to find it at the moment.

Share this post


Link to post
Share on other sites

It's weird, I've never gotten a complaint for doing it this way. So I dunno.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted