Quote:
|
Originally Posted by Omini
An easier method for the setshape bit would be
|
Hadnt really thought of doing that for some reason. Sounds like that could be a good plan but make sure that the x or y is greater then one tile otherwise you might have trouble grabbing the npc in the level editor again :P
Quote:
|
Kind of. but you can't fight befor you say start and it doesn't add to your deaths.
|
all you put in an npc to make it a "sparringzone" is just that
NPC Code:
sparringzone
It appears its still picky in editor what you have there, and Ive always done it that way online also.
And you want it not to start before you say fight? Now you are getting into bigger scripts, you wanna check where the players are at, and have their weapons disabled first!
NPC Code:
if (playerenters) {
disableweapons;
}
Next we need to expand the playerchats block to make sure only people inside the spar zone can say "start" and then anyone in the block, enable their weapons.
NPC Code:
if (playerx in |21,42| && playery in |25,40|) {
...
}
NPC Code:
for (i=0;i<playerscount;i++) {
if (playerx in |21,42| && playery in |25,40|) {
enableweapons;
}
}
All its doing is checking the |start,end| and seeing if your x and y are in those numbers, if you are in the sparring zone, you should be in them. Otherwise you cant start the spar, or get your weapons enabled.
Of course youll need to combine this with everything else, to make a complete script, go ahead and check the level. The healer is in there too.
Hope you are learning something
