Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2002, 08:37 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Trigger Action and Timevar Help Please

Please help:
// NPC made by Poogle
if (playerenters) {
setcharani licookie-normal,;
}
if (actionSprikels){
this.procent+=1;
message #v(this.procent) %;
}
if (this.procent=100){
playerrupees = playerrupees+1;
x = 33;
y = 18;
set donecookie;
this.procent=0;
}
while (donecookie) {
setcharani licookie-sprinkels,;
x = 26;
y = 25;
unset donecookie;
}

AND heres the weapon

toweapons Sprikels;
if (isweapon) {
set sprinkels;
sleep 1000000;
say2 You ran out of#bsprinkels!;
unset sprinkels;
destroy;
}
if(weaponfired){
triggeraction playerx,playery,Sprikels,;
}

Weapon like that for easy testing.
Reply With Quote
  #2  
Old 02-06-2002, 09:39 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Trigger Action and Timevar Help Please

Quote:
Originally posted by Kaimetsu
Horrible coding.

NPC Code:

if(playerenters&&isleader) setcharani licookie-normal,;
if(actionSprikels){
this.percent++;
message #v(this.percent) %;
if(this.percent==100){
playerrupees++;
setcharani licookie-sprinkels,;
x = 26; y = 25;
this.percent=0;
}
}



NPC Code:

if(playerenters){
if(isweapon) timeout=1000000;
else toweapons Sprikels;
}
if(timeout){
say2 You ran out of#bsprinkels!;
destroy;
}
if(weaponfired){
triggeraction playerx,playery,Sprikels,;
}



Stupid parts removed and in some cases replaced. Still don't know what it's supposed to do, though.
It doesnt make the % go up on the cookie with the weapon hiting it and when it gets 100 it give the player a gralat
Reply With Quote
  #3  
Old 02-06-2002, 09:42 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
is it like cookie hitting or something? LOL
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #4  
Old 02-06-2002, 10:11 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by lordhelmut
is it like cookie hitting or something? LOL
No Cookie Making and Then you hit people with the cookie!
Reply With Quote
  #5  
Old 02-06-2002, 10:14 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
sounds kinda ***, why not let them eat the cookie to heal or something?
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #6  
Old 02-06-2002, 11:24 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
wait wait wait...u hit people with the cookies?
don't u usually eat them?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #7  
Old 02-06-2002, 10:36 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by lordhelmut
sounds kinda ***, why not let them eat the cookie to heal or something?
They do as of now! But there will be a food fight weapon to hit people with them!
Reply With Quote
  #8  
Old 02-06-2002, 10:37 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Re: Re: Trigger Action and Timevar Help Please

Quote:
Originally posted by Kaimetsu


Hint: (playerx,playery) is the point in the extreme top-left of the player.
i dont want a certian spot though
Reply With Quote
  #9  
Old 02-06-2002, 11:02 PM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
there is a little something in the newfeatures2001.txt that has a small script for triggeraction...just the weapon script though
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #10  
Old 02-07-2002, 12:03 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by GregoryYoshi
there is a little something in the newfeatures2001.txt that has a small script for triggeraction...just the weapon script though
your sig is hacking my head off...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 02-07-2002, 12:06 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Yoshi's signature owns, that is, if you like graphical images. I just like the simple one's. Like yours Saga.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #12  
Old 02-07-2002, 12:14 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Indeed, and I like mine 2. But his are cool. But my brain hurts because they are too big for me to comprehend. Arg. They are leet, but make smaller...I used to have a ub3r huge sig, and i got axe murdered and that learned me...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 02-07-2002, 12:56 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Saga2001

your sig is hacking my head off...
eh? How so?

If I had an image rotator, I'd be using it...
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #14  
Old 02-07-2002, 06:00 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Re: Re: Re: Re: Re: Re: Trigger Action and Timevar Help Please

Quote:
Originally posted by Kaimetsu


Then: vecx, vecy and playerdir.
still doesnt work








...
Reply With Quote
  #15  
Old 02-07-2002, 12:12 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Trigger Action and Timevar Help Please

Quote:
Originally posted by Poogle
Please help:
// NPC made by Poogle
if(weaponfired){
triggeraction playerx,playery,Sprikels,;
}

Weapon like that for easy testing.
If you have weapons trigger actions exactly on the players
x and y the player will have to have an NPc with the action
in it ...

*i think*
Reply With Quote
  #16  
Old 02-07-2002, 12:13 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by GregoryYoshi


eh? How so?

If I had an image rotator, I'd be using it...
*has Ricks code if ya needs it*
Reply With Quote
  #17  
Old 02-08-2002, 02:18 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Isn't it if the action is being placed on the player is should be triggeraction playerx+1.5,playery+2,action,weaponname,params;? That is as i remember it on npc server...maybe different on non-p2p?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #18  
Old 02-08-2002, 02:21 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Like so:
NPC Code:

// This is what i think you should do.
triggeraction playerx,playery,Sprikels,Sprikels;


Also its not Sprikels, its Sprinkles.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.