- Joined
- Jan 24, 2013
- Messages
- 18
- Reaction score
- 1
- First Language
- English
- Primarily Uses
Hello everyone, I have a question, I'm quite new at using the scripting system.
Trying to get a generic quest generator going using Modern_Algebra's quest system.
The issue is, I'm using the event systems random number to figure out which enemy to "hunt".
And another random number for the number of said enemys' drops.
However, though the variables do randomize with each iteration, the name of the drop and enemy remain the same.
They only successfully "randomize" at the initial iteration.
Is there some form of "refresh" script call I have to make to i don't know "re-synchronize" the database?
I would like to use this script for one of several repeatable side-quests so having a new result per call would be ideal.
I posted screens below and before you laugh at my very likely odd and sloppy workaround methods for achieving this, note I'm still new at Ruby haha.
Here are the screens:
This screen shows the first iteration of the common event with the above code
Here is the second iteration, note the change in enemyID which belongs to "Spider" enemy
Trying to get a generic quest generator going using Modern_Algebra's quest system.
The issue is, I'm using the event systems random number to figure out which enemy to "hunt".
And another random number for the number of said enemys' drops.
However, though the variables do randomize with each iteration, the name of the drop and enemy remain the same.
They only successfully "randomize" at the initial iteration.
Is there some form of "refresh" script call I have to make to i don't know "re-synchronize" the database?
I would like to use this script for one of several repeatable side-quests so having a new result per call would be ideal.
I posted screens below and before you laugh at my very likely odd and sloppy workaround methods for achieving this, note I'm still new at Ruby haha.
Here are the screens:
This screen shows the first iteration of the common event with the above code
Here is the second iteration, note the change in enemyID which belongs to "Spider" enemy

