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 09-18-2001, 04:47 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
#v in weaponnames and *Weapons

weaponname string;
When run in a weapon script, it keeps the Server's version of the weapon name the same, and for all the scripts it's still the same, but the player sees the name differently.
For example:
toweapons *Bomb Bag;
if(isweapon&&this.init<1){
this.init=1;
weaponname Bomb Bag #v(strtofloat(#s(bombbags)));
}

The game thinks it's *Bomb Bag, the NPCs and RC consider it *Bomb Bag, but the player sees it as Bomb Bag 12
You could take it a step further, and:
weaponname string,color;
to allow levelmakers to custom-color their weapons. Then it'd be
weaponname Bomb Bag #v(strtofloat(#s(bombbags))),darkblue;
This would be really handy for when you want to have, say, a key that can be a different color for a different dungeon, or a spell that can be charged different ways for different elements!
Or tools that get redder as they overheat!
Who's with me?

-=-Also: Could we get setimgpart allowed on toweapons? I tried to make a weapon that uses a head as it's image, but try though I might, it would not stay cropped...-=-
__________________
"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

Last edited by Tyhm; 09-18-2001 at 04:50 AM..
Reply With Quote
  #2  
Old 09-18-2001, 04:55 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Hmm. You could do some (actually most) of these by scripting your own inventory system.
Reply With Quote
  #3  
Old 09-18-2001, 04:58 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
Re: #v in weaponnames and *Weapons

Quote:
Originally posted by Tyhm
-=-Also: Could we get setimgpart allowed on toweapons? I tried to make a weapon that uses a head as it's image, but try though I might, it would not stay cropped...-=-
I like that idea, that would mean I would no longer have to make seperate icons for a weapon, which gets annoying.
Reply With Quote
  #4  
Old 09-18-2001, 07:00 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
Kai, if you got a clever way of making that appear when paused, on the Weapons screen, I'll hear it. Since last check I can't even remotely make that screen vanish, and have no intention of removing every toweapons NPC on Classic or porting them to -weaponname NPCs, then faking the inventory screen on a blank weapons screen....
It'd be sweet if we could, like when we had / weapons and could set their location on the weapons screen to make Zelda like frames, but we can't, so this is just as good nee?
__________________
"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
  #5  
Old 09-18-2001, 08:22 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

disableselectweapons;

then just use the uh letters.png or whatever and create and inventory. I made a knapsack that showed 3 weapons at a time and you could scroll through all of them. And kaimetsu is right, you can do all of that.
Reply With Quote
  #6  
Old 09-18-2001, 08:29 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
*blink*
*blink*
Oh. Crud, I always thought that was disableselectedweapon....that makes a bit more sense then.
Still a horrible pain in the butt making a pseudoinventory just to make it look a little more perfessional.
__________________
"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
  #7  
Old 09-18-2001, 08:33 AM
Faheria_Admin5 Faheria_Admin5 is offline
Registered User
Join Date: Sep 2001
Posts: 70
Faheria_Admin5 is on a distinguished road
Send a message via AIM to Faheria_Admin5
Hey I made a backpack that functions as good if not better then the current one. It would be nice it removeweapon could have message codes.
__________________

Reply With Quote
  #8  
Old 09-19-2001, 10:39 AM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
I LOVE that idea.

I have been working on an inventory system myself recently.

It's based on strings as well.
__________________

Rogue World
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 04:32 PM.


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