![]() |
2 Questions
One is...Say I wanted to script a gun or something. What would be the best way to do the bullets? also...Can someone explain how to use the board command
|
1. I guess you could either use putnpc or showimg, I am not sure which one is better, but I would use... showimg, it's less trouble and all scripting is withing one NPC...
2. I dunno... |
no way am i using putnpc, maybe arrays to keep track of showimg accept i dont know how to use arrays in graal
|
I would use arrays.
array example: NPC Code: hope I typed that right and I also hope it helps. |
Quote:
*ZOOOOOOOOOM OVER MY HEAD* |
Quote:
|
Really? :-/ im me (PastAustin) and I can explain it better.
|
forget second part, Supersonic is teaching me
|
if (playertouchsme) {
setstring Ammo,15; toweapons name; } if (weaponfired) { i = strtofloat(#s(Ammo)) - 1; play fire.wav; if (i == 0) { setstring Ammo,; destroy; } setstring Ammo,#v(i); } If you where smart, you would look on the npc scripting page first ;/ http://www.graal2001.com/levelsnpc/npc-guide.php |
the new varialble tile[x,y] is a lot better
|
Quote:
|
you are just funny
|
Quote:
|
Quote:
(example snow) |
kai is totally right, not a command, its a variable
anways you use it to set the tile at x,y to a certain tile NPC Code: |
forgot to mention what you need to do to get this to work
just say changetile xcoordinate ycoordinate tilenumber |
Quote:
Quote:
|
My question wasn't worded correctly.
ok say that i am on the sand. i want the player to move slower but if he was on grass he would move normally. now how would i get it to check when he is on sand and when he is on grass |
purely because i haven't used tile i'll use board.
NPC Code: thats just a rough draft, but kinda like that. |
Quote:
|
Quote:
|
Quote:
thanks dude that has just made a lot of my scripts a lot easier now :) |
Quote:
|
| All times are GMT +2. The time now is 02:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.