![]() |
Laying a custom item
Can someone help me with laying a custom item, I just want it where if (weaponfired) it lays a custom npc at ur x and y with all the scripting in it. Can someone help?
|
if (weaponfired)
{ putnpc imagename.png/gif,text/scriptfile.txt,playerx,playery; } |
Hmm,
Now for a better example. NPC Code: |
umm
btw: the example.txt has to have regular NPC coding in it, just as if you typed it in graal.
So, in the text file, you might want to have... if (playerenters) {message Hi; sleep 1; message bye; sleep 2; destroy; } if you have a .txt file of your homework for science class, chances are, it wont work, lol. |
Quote:
putnpc example.gif,example.txt,1,1; no playerx='s or playery='s in it |
Quote:
e.x: putnpc door.gif,door.txt,30,30; That will show the door image at the 30,30 coordinates of the level. |
know whats so funny about your "better" example?
its wrong it should be NPC Code: + not = |
~AlphaFlame~
But not playerx/y=... you don't set a value inside a putnpc command =/ |
Quote:
But if you want it to be there then putnpc door.gif,door.txt,30,30; if the right way |
it is
putnpc img,txtfile,x,y so putnpc door.gif,door.txt,30,30; would put a door at 30,30 and toran rightfully said and putnpc example.gif,example.txt,playerx+1,playery+1; as i said would put an example npc at playerx+1 and playery+1 |
Quote:
I think we all know what it does and how it works but we're confusing each other by explaining it the wrong way |
Quote:
|
errr
btw in the txt, it would be better if it was if(created) not if(playerenters).
|
Quote:
|
this is probably for andor so use putnpc2 and you dont need the test i dont think.....i am pretty sure, thats the advantage
|
| All times are GMT +2. The time now is 11:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.