Sword |
So, im thinking it needs to be added when the item is spawned. My code for that looks something like this:
new/obj/pickup/Sword(M.loc) |
This is also the code for equipping the item:
Sword |
So I'm trying to give random stats to an item when it drops, but when I try to code it into the base item, I get errors when adding it anywhere within this code:
So, im thinking it needs to be added when the item is spawned. My code for that looks something like this:
This is also the code for equipping the item:
| ||||
#1 Jul 19 2012, 11:01 pm
Best response
|
|
To give the sword random stats you could modify New() for the sword and set its random stats there. When picking up sword, you'd need to save a reference to the sword or its stats in some sort of list for whoever picked it up.
| |
#2 Jul 20 2012, 8:04 am
|
||
| ||
#3 Jul 20 2012, 8:36 am
|
|
Just to show you.
A few things you need to be aware of: 1: Always create a new obj/sword, and it will need a detail number(could be anything. It needs to identify obj/sword) 2: would need a variable to identify who the owner is. basicly what boubi said :) | |