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-20-2001, 12:05 PM
LazyDragoon LazyDragoon is offline
Registered User
Join Date: May 2001
Location: Wa, USA
Posts: 16
LazyDragoon is on a distinguished road
Send a message via ICQ to LazyDragoon Send a message via AIM to LazyDragoon Send a message via Yahoo to LazyDragoon
I need some script help

I need a script where if you die you lose 100 gralat and it is laid right where you died. I had a script like this

if(playerdies){lay goldrupee;playerrupees-=100}

but the script didn't work and lays a gold rupee no mater if the player has 100 gralat or not. Is there anyway to make it so if they die they lose up to 100 gralat and the money is scattered around them? This is for a system NPC i'm working on I have the rest almost done but this is starting to anger me
Reply With Quote
  #2  
Old 05-20-2001, 12:13 PM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
NPC Code:

if(playerdies&&playerrupees <= 100){lay goldrupee; playerrupees -= 100;}



PROBLEM SOLVED!
Reply With Quote
  #3  
Old 05-21-2001, 01:43 PM
LazyDragoon LazyDragoon is offline
Registered User
Join Date: May 2001
Location: Wa, USA
Posts: 16
LazyDragoon is on a distinguished road
Send a message via ICQ to LazyDragoon Send a message via AIM to LazyDragoon Send a message via Yahoo to LazyDragoon
lol thanks but how would you make it so if they had like 76 gralats that all they had was dropped?
__________________
Reply With Quote
  #4  
Old 05-21-2001, 03:14 PM
bb2k1 bb2k1 is offline
Registered User
Join Date: Apr 2001
Location: Canada
Posts: 396
bb2k1 is on a distinguished road
Send a message via ICQ to bb2k1
if (playerdies && playerrupees > 99) lay goldrupee;

Vermains script is WRONG, he's a clownskull.
__________________

- Richter fighting his doppleganger

- Richter Belmont

"Jesus, Jesus, hes our savior. If he can't do it, we'll choose another religious flavor!"
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:16 AM.


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