Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-08-2001, 04:22 AM
Pago Pago is offline
Registered User
Pago's Avatar
Join Date: Mar 2001
Location: Virginia, USA
Posts: 299
Pago is on a distinguished road
Send a message via AIM to Pago
I downloaded the new G2k1 version today, and that "action" tag sounds like it would be very useful for future NPCs . But unfortunately, there's still no way to set a variable for a specific player/group of players that can be manipulated and changed. So I'm proposing a tag that would be beneficial to G-Script and would be very useful for making CS type matches.

if(event){ setplayerindex #index, flag}

Also, you could be able to assign a few lines of code to only the specified index... like so:

player(index){

Notice that the tag is stationed next to an "if-then" thing. If the specified event occurs, an index would be set for the player who triggered the event, until the specified flag is unset. Here's an example of how this could be used:
NPC Code:

if(playerenters || timeout){
timeout= .05;
}
if(timeout && this.mode=0){
if(playery<20 && playery>15 && playerx>20 && playerx<25){
setplayerindex #PL, pagosflag;
this.mode=1;
}
}

if(timeout && keydown(a)){

player(#PL){

if(this.mode=1){
freezeplayer 3;
setplayerprop #c, EEK! LEAVE MY BRAIN ALONE!;
unset pagosflag;
}
}
}



This would cause the NPC to set an index for the player standing in that five by five area. If someone presses "a", the indexed player freezes in place, saying "Leave my brain alone!" Of course, this tag would be used for much more, well, useful things. But this should give you a pretty good idea of what I'm talking about.





__________________
Reply With Quote
  #2  
Old 05-08-2001, 06:51 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
Action tag?
__________________


"My words are like weaponry on a record"
Reply With Quote
  #3  
Old 05-08-2001, 07:18 AM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
Same here, what are they?
__________________
Reply With Quote
  #4  
Old 05-08-2001, 07:21 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
read newfeatures2001.txt, it is a new and powerful scripting command thing.
Reply With Quote
  #5  
Old 05-10-2001, 07:39 AM
Pago Pago is offline
Registered User
Pago's Avatar
Join Date: Mar 2001
Location: Virginia, USA
Posts: 299
Pago is on a distinguished road
Send a message via AIM to Pago
Ok, now that we all know what the "trigger action" tag is, how do you think the NPC tag I proposed would help Graal? Oh, and I kind of need it for level I plan to make , unless Stefan replied to my e-mail... then the tag would be simply obselete.
__________________
Reply With Quote
  #6  
Old 05-10-2001, 09:36 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Yes, I like your idea, it would be useful for many group activities.
Reply With Quote
  #7  
Old 05-11-2001, 07:47 PM
GexGecko GexGecko is offline
Registered User
Join Date: Mar 2001
Location: Deep in Heck
Posts: 169
GexGecko is on a distinguished road
Send a message via AIM to GexGecko Send a message via Yahoo to GexGecko
We could use magic, then I'd draw an ice cube... and you'll see really cool freeze effects... when you hit them, they're free... or you can push blocks to keep doors closed... and it would be used for a quest... Good for keeping Dark Lotus out! 'Cause only you can break the ice!
__________________
I think I'll have fun in my siggy!
Funny Sayings by Omochao:
"Welcome do the desert! It's hot!"
"OK, i understand... I'll eat all my carrots now"
Reply With Quote
  #8  
Old 05-11-2001, 07:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Pago, you can already do this with the NPC Server and the "with(){" statement.
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 01:47 AM.


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