- Joined
- Apr 22, 2013
- Messages
- 731
- Reaction score
- 40
- First Language
- English
- Primarily Uses
I have a small issue with the Instance items script. During a troop event, when a character is being taught what effective weapon to equip for an enemy type, the game crashes when it attempts to equip the character with the weapon.
However, if I were to equip the weapon manually as not part of an event, even though both methods depend on the same skill to equip the weapon, it works just fine. But it wont work when I try it during a troop event. In order to get around this, a player must have already thought ahead of the little hint and have the weapon equipped in combat before the event plays otherwise it crashes.
This is the exact error:
line 1303: NoMethodError occurred
undefined method 'template_id' for NilClass
Just for some checks:
I tried with the Instance items as both false and true. It still crashes.
The scripts are in the correct order.
The skill in question calls up a common event that equips the character with a weapon. It works fine outside of an event.
Here is a little more about the event in detail. Posting a screenshot of the event at the place of the crash:
However, if I were to equip the weapon manually as not part of an event, even though both methods depend on the same skill to equip the weapon, it works just fine. But it wont work when I try it during a troop event. In order to get around this, a player must have already thought ahead of the little hint and have the weapon equipped in combat before the event plays otherwise it crashes.
This is the exact error:
line 1303: NoMethodError occurred
undefined method 'template_id' for NilClass
Just for some checks:
I tried with the Instance items as both false and true. It still crashes.
The scripts are in the correct order.
The skill in question calls up a common event that equips the character with a weapon. It works fine outside of an event.
Here is a little more about the event in detail. Posting a screenshot of the event at the place of the crash:
