![]() |
Elemental NPC Weapons
Hi, I was wondering how I would make some neat NPC weapons that arent just some stupid putexplosions but better.. I am trying to make like Summon NPCs.. There would be one called 'Fire' and one called 'Fire 2', the 'Fire' npc would put a little bit of fire and use 10 MP and the 'Fire 2' NPC would use 15 and cause more damage.. And there would be the big NPCs that would use 50 MP, like on Final Fantasy games how the summons use a butt-load of MP and the little ones use low ammounts.. Who thinks they can help me with this? I can make the images if needed..
Quote:
|
Re: Elemental NPC Weapons
Quote:
I have 4 basic level Magic NPCs...Fireshot, IceBlast, Quake, and Aero Blast. They are all line attacks (ie go in a straight line until collision) so you have to aim well. Hehe, Quake actually causes the screen to jitter when it hits something :D They all do damage through triggeraction so something like Fireshot will slowly burn the player for a short amount of time :) |
Re: Re: Elemental NPC Weapons
Quote:
|
-=Josey=-
The only way that you would be able to "do" your shadow NPC would be to use a server flag. Something like if (weaponfired){ youcodehere; } if (yourhitplayerthinghere){ addstring server.hitbyshadow,#a; } Then with another NPC you'd have to check to see if the string contains their account name then set the backpal. In my opinion, backpals are pretty stupid. I'd use something like seteffect 0,0,0,0.7;. The default is 0,0,0,0;. |
Quote:
|
Yeah, but, if they log off then back on it'll keep as the backpal. ;\
|
Quote:
|
I might need a bit more help than that.... I didnt know it would be so hard... Any samples of NPCs (not only shadow) would be very appreciated:) thanks
|
How would I make the fire from a putexplosion go accross the screen until it hits something like you were talking about? :( :confused: :(
|
-=Josey=-
Lol. I checked this post before I went so I'll help you out a bit. ;P Ok I'm considering that you've already made the first part of it so use something like: if (weaponfired){ timeout=.05; } if (timeout){ this.x+=.5; doFire(); } function doFire(){ if (!this.x=0){ putexplosion <yourthinghere>,this.x,playery; timeout=.05; } else { timeout=0; this.x=playerx+1; } I'd use something similar to that. Considering I'm tired and just wrote this it may not be right. So just mess around with it. Using vecx and vecy would make it a whole lot simpler. ;D |
-=Josey=-
Quote:
|
1 Attachment(s)
Problem with that script, check out the screenshot... lol
|
lmao thats funny ;)
All you need to do is change the x+ to a x-. I would reccomend that you also rescript it yourself so that you actually learn to script for yourself and you learn how to fix simple bugs like that one. Last, you need to use onwall to make it stop when it hits a wall (I think you said you wanted it to). |
Here is a script like what you are making;
NPC Code: I would have put an option for multiple fireshots, but that would have taken longer to write, and that takes time... |
I dont help dumb people trying to copy stupid stuff make something original and dont ask for a whole script.. noobs.. man.. and the stupid *** bases.. get a life it gets old
|
-=Josey=-
Well if you took off every spam thread in the NPC scripting part, it wouldn't have very many posts, almost everyone spams. Spectre I said to use vecx and vecy for it. If you can't even script why come here and ask for stuff? You could also use playerdir but that would be useless if they shot it and their dir was 0 then they turned and it was 3.... Anyway, weapon NPCs are pointless. They don't make a server good. |
Quote:
|
Speaking of this, how do u unset backpals?
|
Quote:
setbackpal pics1.png |
Quote:
|
Saga... anything about the system.. are u working on it.. u done..
u quite.. i need an answer |
| All times are GMT +2. The time now is 03:43 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.