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 01-01-2002, 07:58 AM
PlasmaDestroyer PlasmaDestroyer is offline
Registered User
Join Date: Dec 2001
Location: USA
Posts: 79
PlasmaDestroyer is on a distinguished road
Send a message via AIM to PlasmaDestroyer Send a message via Yahoo to PlasmaDestroyer
Lightbulb Something that might be difficult... o.o

Ok, I think you know that the Hat Change Item makes you able to choose a hat out of a list of variables and shows that hat on the screen. How difficult would it be to do that with something other than hats, say a Morphing NPC that let's you select what you want to morph into. If I had the Hat Trading Script, maybe it wouldn't be so hard! =P
__________________

-Made by Tucker Cloud

AIM Screename - Christian222us
Reply With Quote
  #2  
Old 01-01-2002, 01:53 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: Something that might be difficult... o.o

Quote:
Originally posted by PlasmaDestroyer
Ok, I think you know that the Hat Change Item makes you able to choose a hat out of a list of variables and shows that hat on the screen. How difficult would it be to do that with something other than hats, say a Morphing NPC that let's you select what you want to morph into. If I had the Hat Trading Script, maybe it wouldn't be so hard! =P
not that hard actually ..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 01-01-2002, 02:11 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
maybe this can help

NPC Code:

// NPC made by LiquidIce for some guy in the forum
this.numbers={0,3,4,1,673,203};
if (playerenters) {
toweapons Morpher;
}
if (playerhurt) {
setplayerprop #c,ouch!;
quit();
}
if (weaponfired&&this.on=0) {
disabledefmovement;
this.on=1;
this.pos=0;
timeout=.05;
}
if (timeout) {
this.count=(this.count+1)%3;
if (this.count=0) {
if (keydown(1)) {
this.pos-=1;
play nextpage.wav;
if (this.pos<0) { this.pos=arraylen(this.numbers)-1; }
}
if (keydown(3)) {
play nextpage.wav;
this.pos=(this.pos+1)%arraylen(this.numbers);
}
if (keydown(5)) { this.on=0; }
}
this.current=this.numbers[this.pos];
showimg();
if (this.on=1) { timeout=.05; }
else { quit(); }
}

function quit() {
hideimg 200;
enabledefmovement;
this.on=0;
}

function showimg() {
//here u can put whatever u want as img
//for example if u have hat2093.png and u want the 2093
// to come out of the array then u would put
// hat#v(this.current).png .. ok?
showimg 200,shadoworb.gif,screenwidth/2,screenheight/2;
changeimgvis 200,4;
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
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 09:32 PM.


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