![]() |
NPC Server scripting
How would I make an NPC so that if you touch it, your rupees go up by 1? And this script should work with the NPC Server
|
if (playertouchsme) {
playerrupees=playerrupees+1; } ------- SO EASY -------- |
Shakaku:
eer wrong section Booey, and i think it's the same as without npc server |
Or this
Id sont thikn this is what you want but try..
if (playettouchsme){ lay2 greenrupee, playerx, playery } i use that for a level where ppl are moving arounsd alot but also getting money |
Wrong section, but, you would need to do a triggeraction to the control-npc which adds or subracts money from the player:
NPC Code: |
yah it has to be server sided.
|
playertouchsme works fine
|
Quote:
|
Quote:
So I guess i'm a n00b |
Re: Or this
Quote:
I dont think this is what you want but try.. is what i meant |
gosh! i thought i was a talented scripter, i use playertouchsme and playerrupees=playerrupees+(), you guys are so complicated!
|
playertouchsme works server-side but you have to use setshape first. so ha and poo on you.
|
This is why non-P2P is fun :D Much less confusing..
|
The *real* NPC Server way to do it :)
NPC Code: A NPC that just increases your Gralat count would be really unrealistic :( Totally off topic: Hmm, it would be cool if the code-Vb tag would format your script the same way the debugger on Graal does... |
Thanks for that one Loriel, I never knew that you could use that #4 for setting the NPC direction. :)
|
Quote:
|
B00ey, I really doubt that you can make a server, or a good level for that matter.
|
Jin, Why in the hell do u always like to find trouble at the end of threads?
|
Quote:
|
Re: NPC Server scripting
Quote:
We Graalians post this kind of stuff in NPC Server forum! |
| 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.