Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   #v in weaponnames and *Weapons (https://forums.graalonline.com/forums/showthread.php?t=12179)

Tyhm 09-18-2001 04:47 AM

#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...-=-

Kaimetsu 09-18-2001 04:55 AM

Hmm. You could do some (actually most) of these by scripting your own inventory system.

Thak2 09-18-2001 04:58 AM

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.

Tyhm 09-18-2001 07:00 AM

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?

Brady2 09-18-2001 08:22 AM

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.

Tyhm 09-18-2001 08:29 AM

*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.

Faheria_Admin5 09-18-2001 08:33 AM

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.

SagaTCN 09-19-2001 10:39 AM

I LOVE that idea.

I have been working on an inventory system myself recently.

It's based on strings as well.


All times are GMT +2. The time now is 11:43 PM.

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