Hey guys I was wondering if its possible to add/delete notetags from actors/weapons/items etc with eventing/commong events?
I'm trying to change the characters battle graphics this way according to what weapon you're equiped with.
Ex: when using long sword I don't want it to look like you have a staff during battle xD
I haven't found anything on this
Any help would be appreciated.
Thanks in advanced!
Actors/Items/Weapons are stored in your Data/*.rvdata2 files. While it is possible to change those, changes would affect all savegames and not only the current one.
You are better off implementing a conditional branch inside the script that checks for the equipped weapon.
Well, you could check for equipped weapon type AND actor id.
There is another problem with the idea of changing notetags: a lot of scripts only load them once at new game, and then check their own internal datastructures for the values.
That is because the notebox is really only a way to enter additional data.
If you change the notetag later, it will most probably have no effect on the script that reads them - because what you really need to change is the internal data storage of said script.
And that can easily changed with regular script commands after you have identified the names of the variables storing that data.
But those variables are different depending on the script...
Yeah, you would need scripts that would let you create a unique item for an actor/weapon combination. This means the weapon would have those particular settings only when equipped by that actor, and three different actors could all have the same weapon but with different settings. There MAY be scripts out there that already go part-way to doing this.
Anything you do to a weapon, without having such a script, would affect ALL weapons with that ID. Plus Andar's point about many scripts only reading note tags at the start of the game, so they wouldn't update if you changed the note tags mid-game.