l3m35

Veteran
Veteran
Joined
Nov 24, 2017
Messages
53
Reaction score
15
First Language
PT-BR
Primarily Uses
RMMV
I'm trying to make a bar or percentage of progression of each quest, so the player will know how long the quest is even not seeing all objectives (reveal all objectives from the start is not in my plans).

For this, I'm using a common event, like this:

Screenshot_5.jpg

The var 261 gets the total objectives of the quest #2 LESS 1 (because $gameSystem.totalQuestObjectives is returning 1 more than the real number, not sure if it's a bug of the plugin or not).

Then I check if the last objective was completed, to show a simple message "100% completed" - it's just a test, each percentage would have it's own message.

This is working but I would need to use a large number of vars (one for each quest, and I'm planning to have a lot of them). If I have a way to get the quest ID, I would need a single var, updated every time the player checks the quest menu.
Anyone experienced with this plugin have an idea?
 

Kikeluzi

Paladin
Veteran
Joined
Nov 18, 2015
Messages
52
Reaction score
27
First Language
Portuguese - Br
Primarily Uses
RMMV
Did you do it? if so, how did you do it? I'd like to check if such a quest is available to make a condition =P
 

l3m35

Veteran
Veteran
Joined
Nov 24, 2017
Messages
53
Reaction score
15
First Language
PT-BR
Primarily Uses
RMMV
No, not yet. Only using multiple vars (one for each quest), I did one as a test and it's working. Get the ID when the scene is open would be much better. I let it aside by now to work in other parts of my game.
 

Kikeluzi

Paladin
Veteran
Joined
Nov 18, 2015
Messages
52
Reaction score
27
First Language
Portuguese - Br
Primarily Uses
RMMV
No, not yet. Only using multiple vars (one for each quest), I did one as a test and it's working. Get the ID when the scene is open would be much better. I let it aside by now to work in other parts of my game.

I think I found that out.
I was looking at the settings of this plugin to see the codes that were used... basically, it's the examples he/she used.

ex:
Code:
$gameSystem.getQuestDescriptionIndex(questId);

the Quest ID code is this "questId"

ex:
Code:
$gameSystem.isQuestObjectiveCompleted(questId, objectiveId)

the Objective ID code is this "objectiveId"

There are other things too, that I don't remember exactly, but, there are codes for the plugins commands too that is not mencioned in the plugin description, but can be used to help by using scripts... like this one:
1588695146000.png
script: $gameSystem.questAdd(questId) = command: Quest Add x

I don't understand javascript, what I did was the following ... I looked for the "plugin commands" in the JS file (CTRL + F) and I was looking for the codes used to make them. the ones that had "$gameSystem.something" were working... xD

The thing I was looking for I didn't find... but I hope I was able to help you with something :p
 

Latest Threads

Latest Posts

Latest Profile Posts

Jeżeli jeszcze nie subskrybujecie to byłoby nam bardzo miło.
1.png
Potrzebujemy 100 subów na niestandardowy URL.
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.
A lot to learn to make a game. Can I handle it?
I've been working on status effects since last thursday, and today I finished the core mechanic of Zombie, Teleport, Curse and Recall. Zombie and Curse are lacking a few things to make them complete atm. Teleport though is the "HAHA" spell for some of my mobs, but can "NOPE" at them with Recall.
I'm weird as there are a few game franchises I'll watch and read about, but have no interest in playing.

Forum statistics

Threads
115,159
Messages
1,087,726
Members
149,702
Latest member
Hidemitsu
Top