Quote:
Originally Posted by Salaisuus
addweapon wont work for me at all, why why why?
Oh and when I try to save classes RC says:
"Script *scriptname* saved (no npc with this class on the server)."
And wont display the file. Even tho there is an npc with that class on the server. Why oh why?
|
First you need to make the class. Then you need to have an NPC that joins the class in a level. The class list won't show it until the join thing is done. If the class isn't showing up on the class list, go into the level where the join stuff is done. If that still doesn't work, you can access the class through the scripts folder in RC (and of course for me, whenever I open a text file from RC, it's all on one line and I have to hit enter a million times for it to be back to normal).
Now to try to explain addweapon
NPC Code:
if (actions/conditions) addweapon weaponname;
The weapon, will then go into the player's weapons list and carry out whatever script is in the weapon script stored in the server (viewed by clicking the sword icon thing in RC).
toweapons, on the otherhand, isn't quite as organized.