Bastien067 experiments, new assets and other...
Posted: Thu Nov 01, 2012 7:06 am
Hello everyone 
First I would like to apologize for my english, but I have an excuse : I'm french
I started modding a few days ago, an I would like to use this thread to show and discuss new asset i have created, script code, texture and 3d models...
First, I'm proud to introduce The magic Scroll of...
Remember the good old magic scrolls in D&D ? You read it and the scroll activate a spell... and then all you have is a useless magic scroll...
When i saw that it is possible to make new assets, this is the first thing i think about...
I juste create an item with using the model of a scroll and working like a magic wand with only one charge.
here is the code:
Obviously you can change the spell by whatever spell you want... fireball is just an example...
Let me know what you think about it, this is my first try in coding, so maybe the code is nat perfect, but it's working ^^
Thank you.
First I would like to apologize for my english, but I have an excuse : I'm french
I started modding a few days ago, an I would like to use this thread to show and discuss new asset i have created, script code, texture and 3d models...
First, I'm proud to introduce The magic Scroll of...
Remember the good old magic scrolls in D&D ? You read it and the scroll activate a spell... and then all you have is a useless magic scroll...
When i saw that it is possible to make new assets, this is the first thing i think about...
I juste create an item with using the model of a scroll and working like a magic wand with only one charge.
here is the code:
Code: Select all
defineObject{
name = "magicscroll_fireball",
class = "Item",
uiName = "Magic scroll of Fireball",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful fireball.",
skill = "fire_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "fireball",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
cloneObject{
name = "magicscroll_empty",
baseObject = "scroll",
uiName = "Empty Magic Scroll",
description = "This empty magic scroll is now useless"
}Let me know what you think about it, this is my first try in coding, so maybe the code is nat perfect, but it's working ^^
Thank you.