Main Menu
  • Welcome to The RPG Maker Resource Kit.

Addressing Actors in Script?

Started by shintashi, March 28, 2010, 04:37:46 AM

0 Members and 1 Guest are viewing this topic.

shintashi

is there a way to directly address actors or character classes using script?

I have some ideas for stats, skills, and classes, but I want to address specific character names or classes (like a wizard or fighter) without effecting the other classes.

Mr_Wiggles

Can't you do that in the data base?  Or is that not what your talking about.
[spoiler]
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com

[/spoiler]

shintashi

if i create a new character class like Blue Mage and I want to have special effects targeting them, what do I have to do?

Here's a fake code for example.

if blue mage (gets hit by [current monster].[current monster attack])
then [dice % verses 5%
(if dice <6%
then [add [current monster].[current monster attack] to blue mage.[skill list])
else
[null]

Basically I'm wondering how player character classes or player character names are directly addressed in the Script.

tSwitch

if $game_party.actors[id].class == "blue mage" then
// code
end

or something like that, that's just pseudocode I pulled out of my ass real quick.

Short answer, yes, you can, there's the $game_actors and $game_party classes you can access to fetch actor information.

also blue magic has been done


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon