RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
skills in scripts...

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
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

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
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.

***
Rep:
Level 88
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:
Code: [Select]
@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.
« Last Edit: January 06, 2008, 02:27:48 AM by atracious »
"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