So based from the script. what should I type at the command to enable battle, shop and etc. I did GuideManager.enable(1) but the screen just froze
It shouldn't freeze, unless something isn't set up right.
Just did a test with the script and it works. But need to setup the mock party thoroughly.
The easiest will be comment out the mock party line in
GUIDE_DATA.
add # in front of
😛arty => 1,in the script.
eg
#
😛arty => 1,This will run the tutorial in current party without the need to set up the mock party.
Edit:
Or in the mock party part:
Spoiler
#============================================================================= # MOCK_PARTY_DATA #============================================================================= # Here is the list of fake parties for guide purposes. It can be realy useful # if your guide depends on the selection of a specific party member, or a # specific party state, like certain item available on top of the item list, # a member with depleted HP or high TP. After the guide stops, the original # party will be automatically restored as it was. The dictionary key is for # reference only, but must be unique for each mock party. MOCK_PARTY_DATA = { 1 => { # Optional, the party member's ids :members => [1,2], # Optional, the weapons on the party inventory :weapon => [# [id, quantity] [1,1] ], # Optional, the armor's id's on the party inventory :armor => [# [id, quantity] [1,1], [2,1] ], # Optional, the item's id's on the party inventory :item => [# [id, quantity] [1,2] ], # Optional, the party gold amount :gold => 1000, # Actor setup, here you can define default values for each actor :setup => [ # [actor_id, {options}] [1, {:hp => 100, :tp => 20, :mp => 20}], [2, {:hp => 150}], ] }, #end of example mock party }#end of mock party data
change actor id 11,12 to 1,2 both on the top and the end of mock party settings.
the script return in error because it can't find actor 11 & 12, so you will need to change that to make it works.
Edit again:
Misread a part in the script.
GuideManager.enable(1) will only enable the tutorial to be access from the guide scene. so the user can re-peat them any time at their own pace.
to have it automated.
you will need to turn on a game switch with the same id.
eg.
game switch 1 will turn on game status tutorial. means it will automatically run when you enter a status scene.
game switch 2 will turn on battle
game switch 3 will turn on shop
to use automated feature, you will need to turn off the switch after the tutorial or it will repeat over and over again.
add this to the end of each tutorial you will be building.
[:sw, 3, false]where 3 is the switch/tutorial id
Spoiler
[IMG]http://s10.postimg.org/z6hf9nhfd/Untitled_1.png[/IMG]