New account registration is temporarily disabled.

IS THERE A WAY TO MAKE MATERIA/RUNES WORK FOR ALL CHARACTERS?RM2K3

Posts

Pages: 1
Hey so I have this code that makes it so that if I have an item equiped (in this case fire rune). I gain some spells. Is there a way to make this apply to all characters or do I need to input it one by one?

I have a common event

Branch If [Hank fire rune equiped)
teach fire skills
else if (hank fire rune not equiped)
remove fire skills.

Is there a way to make this check every character and teach them the skills if they have it equiped and remove if they dont. Or do I just have to make a commen event for every character?

I feel like its something to do with character id stored in variabled but im not sure how to get and set character ID.




pianotm
The TM is for Totally Magical.
32388
Yeah, this is pretty much how you have to do it. You're right; there is a way to make it simply function based on character ID, but I don't know how to do it and I'm pretty sure it'd take as much effort.
Marrend
Guardian of the Description Thread
21806
Is it possible to use the character ID as something you could pass into the Add/Remove skill event-command?
Ok cool. I just like to have clean and efficient code. Seams kinda messy doing it for every single character but guess ill have to do it that way.
pianotm
The TM is for Totally Magical.
32388
You know, I think there's actually a tutorial for this. Yeah, it says the same thing. There really is nothing else for it.

@Marrend. That won't work. The Character ID tags just specify who can equip the item. If they're making an item effect that can't be made in the database, they're stuck having to specify every character. This is 2k3.

Yeah, I'm looking for other ways to do this, but with only a seat of my pants understanding of trig, I'm not coming up with anything.
Marrend
Guardian of the Description Thread
21806
The sub-thought in my head was, like, even if you could pass Character ID into a variable, you'd still need a conditional branch to check the variable, then and perform the operations on the correct character that matches the ID? And would end up being more work than if you just did a conditional branch on each character for the equipment?

Well, if you could use a loop operation where you could just increment a variable that represents Character ID, and the rest of the event-commands would refer to that variable, that could be A Thing. However, I have no idea if that's even possible within the event-commands that 2K3 has. I don't remember them very well at all, and certainly don't have the engine in front of me to check. I have a large amounts of doubts that something like that is possible, if that's worth anything.

*Edit: You might want to take a peek at this game, maybe?
BingShan's maniacs patch allows you to use variable pointers for pretty much everything. Assuming "materia/runes" is an actual equipment slot, you'll be able to code it only once, then loop through all Character IDs you have. Shouldn't be more than two pages of code really, especially if you make your Equipment IDs and your Skill IDs match. If you're making stuff that's more complex (such as some Materia/Runes that grants more than one skill for example) you can always just special case, it, too, and every single special casing should work for each hero.
Pages: 1