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 05-26-2002, 07:59 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Morpher

Hey again. I was just wondering how the morpher on Classic was made. If you aren't familiar with it, you can fire it next to someone and get all his/her clothes, shield, sword, and head. It's really quite cool. I don't quite know how to do this, though. Here's what I would do...

NPC Code:

if (weaponfired)
{
// Do this for each direction
if (playerdir == 1)
{
this.pindex = testplayer(playerx - 1, playery);
// Use the player's index to get all his/her clothes.
}
}



But um... What do I do with the player's index then? I don't know of anything to return another player's clothing colors.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #2  
Old 05-26-2002, 08:36 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Standard player detection, then
setplayerprop #3,#3(this.i);
if(!strequals(#s(this.i),shield1.png))
setplayerprop #2,#2(this.i);

But I oversimplify, there are delays of course, activation and deactivation conditions, and more shields and swords to not morph....
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #3  
Old 05-26-2002, 01:05 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Tyhm
Standard player detection, then
setplayerprop #3,#3(this.i);
if(!strequals(#s(this.i),shield1.png))
setplayerprop #2,#2(this.i);

But I oversimplify, there are delays of course, activation and deactivation conditions, and more shields and swords to not morph....
Awesome. So you can get basically any information about another player using a messagecode(index)? Thanks.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
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:37 AM.


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