hi, i have the idea to do a video, something including cinematic and demos of different gameplay modes : a hedgehog do something, other hedgehod say it's lame, the first kill them, and punishment he had to success in different game modes....
no problem with the demos, but i need help about lua script
i would like to do a cinematic using lua (to avoid the time of typing a bubble text for each hedgehog)
but i have this error message from the engine :
[quote]Last two engine messages:
ok
Some parameters not set (flags = 0)[/quote]
here is my script :
[quote]loadfile(GetDataPath() .. "Scripts/Locale.lua")()
function onGameInit()
seed = 0 -- The base number for the random number generator
GameFlags = gfInfAttack +gfSolidLand +gfDisableWind
TurnTime = 90000 -- The time the player has to move each round (in ms)
CaseFreq = 0 -- The frequency of crate drops
MinesNum = 0 -- The number of mines being placed
MinesTime = 3000
Explosives = 0 -- The number of explosives being placed
Delay = 10 -- The delay between each round
Map = "Ruler2" -- The map to be played (custom map)
Theme = "nature" -- The theme to be used
AddTeam("un", 14483456, "Simple", "Island", "Default", "hedgewars")
player = AddHog("Sphrix", 0, 1, "NoHat")
AddTeam("autre", 1175851, "Simple", "Island", "Default", "Hedgewars")
enemy1 = AddHog("1", 1, 1, "mp3")
enemy2 = AddHog("2", 1, 1, "Glasses")
enemy3 = AddHog("3", 1, 1, "gentleman")
enemy4 = AddHog("4", 1, 1, "anzac")
SetGearPosition(enemy1, 860, 793)
SetGearPosition(enemy2, 911, 793)
SetGearPosition(player, 971, 793)
SetGearPosition(enemy3, 1050, 793)
SetGearPosition(enemy4, 1111, 793)
end
function onGameStart()
end
function onGameTick()
if (CurrentHedgehog == player) then
if returnControl == true then
SetGearMessage(player, 0)
aTimer = aTimer + 1
if (aTimer == 2000) then
HogSay(CurrentHedgehog, "hey guys ! look at me, i can ...", SAY_THINK)
elseif aTimer == 5000 then
onTaunt(/juggle)
elseif aTimer ==9000 then
HogSay(CurrentHedgehog, "I CAN JUGGLE !!", SAY_THINK)
elseif aTimer ==11000 then
HogSay(CurrentHedgehog, "what do you think about it ? ??", SAY_THINK)
--TurnTimeLeft = 1
SwitchToHog(ennemy)
aTimer = 0
end
end
end
end
function onGearAdd(gear)
end
function onGearDelete(gear)
end[/quote]
why have i a message error saying flag=0 ?
and if you see other error tell me
[center] the beachs hogs surfin hedgewars [/center]
[IMG]http://imgur.com/HJSMewv[/IMG]