Dear people who read the shit i write,
right now, I'm adding the function you wanted me to add.
Yes, you'll be able to add your own stuff, your own blocks, weapons, items, ammunition, and even enemys(working on blocks,weapons,itemsand ammunition right now, I'll add enemys later).
Now i think you want to know how to add this stuff, and I'll tell you now.
It's pretty pretty and simple:
You have to make a new .txt file in the [script] folder, then you'll have to write the name of the .txt file into the addscript.txt. After you added the name into the addscript.txt data, as described in the file, you have to write following lines into your script to add whatever you want.
addblock(id,kind,drop,dropc,dropa,walkable,health,name$)
id=the id of the block
kind=1=replaceable 2=not replaceable
drop=the ID of the item it drops
dropc=the chance it drops this item
dropa=the amount of the drop
walkable=can you walk throu the block? 0=no, 1=yes and 2=its liquid
health=time it takes to destroy the block
name$=the shown name of the block
additem(id,kind,set,dur,stat,cast,weight=0,value=0,name$="")
id=id of the item
kind= 0=its nothing, 1=its usable(potion), 2=its placeable(torch/ladder), 3=its an armor
set= which block or entity it sets when you use it(0 for not placeable)
dur=duration of item(usable=how often, armor=duration)
stat=does it change the status of the player?(ID of the status)
cast=does it cast a spell when used?(ID of the spell)
weight=the weight of the item/armor whatever
value=how much should it cost? (-10% when sold by a player)
name$=the shown name of the item/amor whatever
addweapon(id,kind,damage,speed,range,dur,stat,ammo,cast,weight=0,value=0,name$="")
id=id of the weapon
kind= 1=shortrange weapon, 2=longrange weapon, 3=weapon you throw(shuriken)
damage=damage the weapon does(with - it heals)
speed=time it takes to reload/ready the weapon after each hit
range=range in pxls the weapon can hit(*32 for tiles)
dur=how often can you hit without breaking it?
stat=status change for enemy(ID of the status)
ammo=does it need ammunition?(ID of the ammunition)
cast=does it cast a spell when used?(ID of the spell)
weight=should i really tell you what it means?
value=same as for items
name$=same as for items
addammo(id,kind,damage,time,cast,weight,value,name$)
id=ID of ammunition
kind=1=arrows, 2=bolt, 3=rock, 4=manaorb, 5=bullet, 6=rocket, 7=granade
damage=damage the ammunition does
time=(only for rockets and grenates) time the projectile has before exploding
cast=does it cast a spell?(ID of the spell)
weight=THIS IS IMPORTANT FOR THE SPEED OF THE PROJECTILE!
value=same as for items
name$=same as for items
Thats it, i hope i helped you!
truly
ya fool
Wouldnt Nr. 7 be Grenade? you mentioned grenade and grenade wasn't on the list
AntwortenLöschen// THE GUY THAT GOT ONE OF KARLS DADS COWORKERS LICENSE-PLATE! Aka. Kent Aka Yellow flower Aka. Headcrab
yo, nice game
AntwortenLöschenok, edited it, now its grenade.
AntwortenLöschenand thanks for your comments ^^