Sergeant at Arms
Ok, so I'm trying to add muskets into my pet mod, and I've succeeded in creating the weapon itself, and want to add the muzzle, smoke and sound effects to the gun. I copy-pasted the effects code from the native flintlock pistol, but when I'm trying to compile, here's what I'm getting:
Any particular reason as to why it doesn't see the native code? I've tried to check if the flintlock pistol's entry has anything different, and apart from it being type_pistol (and the associated shoot_pistol and reload_pistol variables), I really don't see any difference. Is it that these effects are coded to only read pistol items?Loading module... FAILED.
MODULE `scripts` ERROR:
Traceback (most recent call last):
File "compile.py", line 109, in <module>
from module_scripts import *
File "C:\Users\Administrator\Desktop\Xmastown source\module_scripts.py", line
25, in <module>
from module_items import *
File "C:\Users\Administrator\Desktop\Xmastown source\module_items.py", line 13
03, in <module>
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos
1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", po
TypeError: 'int' object has no attribute '__getitem__'