Main Menu
  • Welcome to The RPG Maker Resource Kit.

skills in scripts...

Started by Atracious, January 05, 2008, 02:05:41 AM

0 Members and 2 Guests are viewing this topic.

Atracious

Hi! I have a few things that i would like to know about skills in relation to scripting:

1. how would you draw a skill's icon?
2. how would you print the skill's name?
3. how would you write the amount of sp needed for the skill?
4. how would you be able to get an attribute for a skill to display something like element type?

thx in advance!
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

Falcon

Strike one for wrong forum. (Should be in script help)
http://rmrk.net/index.php/topic,20694.0.html

1-3. Check Scene_Skill or Window_Skill, one of those should show all the code.
4. You'd probably need to write your own method, which checks which element the skill is, I don't think one is built in.

Atracious

#2
oops...thought i was in scripts help....i'll have to pay closer attention next time...


EDIT: I got the first 3 to work, but the code that finds what attributes a skill has is part of the 'hidden' code, i traced it to this call:
@common_event_id = @skill.common_event_id

so the code is a common event, and i don't think that there are any common events in the scripts......I just need to know how to get whether an attribute is set to the skill.
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html