Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2001, 01:59 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Agh, help please

How do i make it so like
your rupees cant be more then the flag
player.rupees=
because i want it so you can only hold a certain amoun of rupees when you start but you can do quests that set like
player.rupees=1000
so you can hold up to 1000....
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #2  
Old 06-16-2001, 02:36 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Try this

if (playerenters) {set rupees}
if (rupees&&playerrupees>1000) {playerrupees=1000}
Reply With Quote
  #3  
Old 06-16-2001, 02:54 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
no but i want the max amount of rupees to be the flag
like if the flag is player.rupees=5000
i want the max rupees to be 5000 if the flag is player.rupees=1000 i want the max rupees to be 1000...
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #4  
Old 06-16-2001, 05:01 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x is on a distinguished road
NPC Code:
if (playerenters||timeout)
if (!(isweapon&&hasweapon(-moneysystem))) {
setstring player.maxmoney,1000;
toweapons -moneysystem;
}
else if (playerrupees>strtofloat(#s(player.maxmoney))) playerrupees=strtofloat(#s(player.maxmoney));
timeout=0.05;
}


__________________

Reply With Quote
  #5  
Old 06-17-2001, 07:05 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Quote:
Originally posted by grim_squeaker_x
NPC Code:
if (playerenters||timeout)
if (!(isweapon&&hasweapon(-moneysystem))) {
setstring player.maxmoney,1000;
toweapons -moneysystem;
}
else if (playerrupees>strtofloat(#s(player.maxmoney))) playerrupees=strtofloat(#s(player.maxmoney));
timeout=0.05;
}


Thanks!
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:56 PM.


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