CoolDownTime line bug? (Solution Found)
Posted: Tue Sep 25, 2012 1:16 am
So I've been trying to, at first clone a dagger and give it a unique cooldown.
I ran into an error, so I thought to merely define it.
Then I tried to simply copy paste the defineObject dagger script and I was getting the same error.
Upon opening the project I am greeted with, "mod_assests/scripts/items.lua:598 : '<name> expected near 2.0'
The error is always the same where '2.0' is whatever I entered for coolDownTime.
I ran into an error, so I thought to merely define it.
Then I tried to simply copy paste the defineObject dagger script and I was getting the same error.
Code: Select all
defineObject{
name = "dagger_vannay",
class = "Item",
uiName = "Dagger of Louis Vannay",
skill = "daggers",
gfxIndex = 10,
model = "assets/models/items/dagger.fbx",
attackPower= 12,
accuracy = 7,
evasion = 3,
coolDownTime: 2.0,
attackMethod = "meleeAttack",
attackSwipe = "vertical",
attackSound = "swipe_light",
impactSound = "impact_blade",
weight= 0.5 ,
description = "This dagger is superbly weighted. \nIt's craftsmanship goes beyond anything you've seen before. \nIt once belonged to a very famous rogue.",
}The error is always the same where '2.0' is whatever I entered for coolDownTime.