ID:167944
 
Ok, I need codes or a little booster on...


1. Playing a sound on a collision with (wall/window)
2. Changing player State after collision with Team colour flag (Red or Blue) EDIT: Must return Neutral after death or into a pit.
3. Any chances I can put items/weapons on a Player without using states?
4. Different weapon, different weapon attack. Must Equip as well.
5. Moving a Player 3 squares in the direction of the attacker, if hit by certain weapon.
6. Easy to use Buy and Sell to work with money and some sort of Inventory.
7. NPC movement and attacking OTHER NPCS.
8. Saving.



Blimey, thats a long list. I'll proberly think of more too.
Theres a couple of things in there that a proc called Bump will help on, just play the sound on the bump.
In response to Derekjeterisgod
In the DM Guide? The closest I found was Enter(mob/M) ...
In response to RedlineM203

Format:
Bump(atom/Obstacle)
When:
Called when a movement fails due to a dense blockage.
Args:
Obstacle: The blocking object.
Default action:
If the obstacle is a mob in the src's group, swap their positions.
In response to Derekjeterisgod
Derekjeterisgod wrote:
Format:
Bump(atom/Obstacle)

Hmmm... those commands in brackets never work for me.

EDIT: New on list:
9. PVP zone - Can't attack outside it
In response to RedlineM203
A pvp zone, just make an area that removes the attack verb using entered.
area/no_attacking_zone
Entered()
usr.verbs -= typesof(/mob/combat/verb)

That should remove there combat verbs.
In response to Derekjeterisgod
What attacking code is that for? I'm getting errors.

Arena.dm:112:error:/mob/combat/verb:undefined type path
In response to RedlineM203
Just gonna give this a quick bump.
In response to RedlineM203
You copy/pasted everything. He gave you a good example of how to remove some verbs. Now go and read the DM guide.
In response to Mysame
Nope, I write a lot. Sadily just basic stuff. Maps look brilliant to me though.

PS: I frickin' RELY on the guide.
In response to Derekjeterisgod
Derekjeterisgod wrote:
A pvp zone, just make an area that removes the attack verb using entered.
> area/no_attacking_zone
> Entered()
> usr.verbs -= typesof(/mob/combat/verb)
>

That should remove there combat verbs.

Nonono, hasn't the BYOND community already bashed your head enough for using usr in procs, especially a movement one? :P

You should never use usr in a proc, since it is unreliable. Use the argument of Entered() instead. Otherwise, you'll end up getting runtime errors if you assume it's a mob, when it isn't.

area/no_attacking_zone
Entered(mob/M)
if(ismob(M))
M.verbs -= typesof(/mob/combat)


~~> Unknown Person
In response to Unknown Person
Unknown Person wrote:
> area/no_attacking_zone
> Entered(mob/M)
> if(ismob(M))
> M.verbs -= typesof(/mob/combat)
>

~~> Unknown Person

Hmm... I've been trying to fit that with other things. I got a shooting code that works, but I can't see if it can fit.

And I don't have any other type of combat yet. Thats where I need help on multiple weapons, and buying and selling.
EDIT: There is no real help on Multiple weapons + equip, and I tried that Buying and Selling thing but it wouldn't go without error.
In response to RedlineM203
I bet your attack verb isnt labeled under combat O_o