So, I am working on a script that swaps a character with another using a command or a skill. I have set the notetag, but I have no idea on how to do that. I mean, I know what I want to do, but I cannot translate that procedure to Ruby.
Here's the procedure (or Algorithm if you prefer):
1. Read notetag.
2. Call the Actor database
3. Look for Actor x from the notetag
4. Remove Actor y from party
5. Add Actor x to the party
Here's a portion of the script:
Here's the procedure (or Algorithm if you prefer):
1. Read notetag.
2. Call the Actor database
3. Look for Actor x from the notetag
4. Remove Actor y from party
5. Add Actor x to the party
Here's a portion of the script:
Code:
alias ActorSelect, ActorSwap# Notetag for Skills class RPG::Skill def ActorSelect if @note =~ /<SwapWith (.*)>/i return $1.to_i else return 0 end class RPG::Actor# Actor Swap def ActorSwap #<- This is what I'm missing. end end