Worklog for Duckstab[o]
Lua Scripting
Return to Worklogs| 
 | ||
| Well ive had a good 8 hours sleep so im about to build the first prototype of Areonx Lua. My first prototype is to enable movement scripting for the player Window 7 Home Premium Q6600 4*3.199Ghz Single Nvidia G260 768mb DDR3 (Soon to be two :) ) 780i XFX mobo 21 Viewsonic 16/10 4gb Ram 1.5tb harddrive My Game Space Home Page | 
| 
 | ||
| My next objective is to set up a mod folder so additional scripts may be loaded this mode will not be enabled for the core game but modifications may be made in the form of a module ie like NWN and NWN2 Window 7 Home Premium Q6600 4*3.199Ghz Single Nvidia G260 768mb DDR3 (Soon to be two :) ) 780i XFX mobo 21 Viewsonic 16/10 4gb Ram 1.5tb harddrive My Game Space Home Page | 
| 
 | ||
| Lua_Character.lua Lua_Race.lua Lua_Beast.lua Lua_Job.lua Lua_Mob.lua Lua_Spell.lua Lua_Tech.lua Lua_Trait.lua Lua_Skill.lua Lua_Player.lua Lua_Monster.lua Lua_Boss.lua These are the Core Scripts used to Create the game characters Window 7 Home Premium Q6600 4*3.199Ghz Single Nvidia G260 768mb DDR3 (Soon to be two :) ) 780i XFX mobo 21 Viewsonic 16/10 4gb Ram 1.5tb harddrive My Game Space Home Page | 
| 
 | ||
| Lua Object :Race -- Race.lua
Race = {}
setmetatable(Race, {__mode="v"})
function NewRace(name)
	local char = {
		Name = name,
		Stats = {
			Str=5,
			Dex=5,
			Agi=5,
			Int=5,
			Mnd=5,
			Spd=5,
			Lck=5,
			
			Hp=30,
			Mp=10,
		},
		Trait = {
			Trait1="Null",
			Trait2="Null",
			Trait3="Null",
			Trait4="Null",
			Trait5="Null",
		},
		Skill = {
			Axe=1,
			Sword=1,
			Mace=1,
			Club=1,
			Staff=1,
			Wand=1,
			Gun=1,
			Bow=1,
		},
		Magic = {
			Fire=1,
			Ice=1,
			Water=1,
			Wind=1,
			Thunder=1,
			Earth=1,
			Light=1,
			Dark=1,
		}
	}
	table.insert(Race,char)
	return char
end
This is a first concept for the player,npc,enemy base class. Variations can be implemented with a simple text editor without the need to recompile the engine. ..... Window 7 Home Premium Q6600 4*3.199Ghz Single Nvidia G260 768mb DDR3 (Soon to be two :) ) 780i XFX mobo 21 Viewsonic 16/10 4gb Ram 1.5tb harddrive My Game Space Home Page |