[IMPLEMENTED] Expand the 'set command...

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Expand the 'set command...

Post by stranf »

Expand the 'set command to include variables from the weapons and armor .dfn entries.

For example: It would be a slick way for GMs to create some unique items if they could alter the parameters that already exist instead of created a new .DFN entry.

For example, creating a magic sword that adds one int, subtracts a str, and does a base of 20-38 damage would be simple.

first create or buy a normal longsword.

'set name2= Longsword of intellect

'set hidamage 38
'set lodamage 20
'set int 1
'set str -1


Walla, you are done, no need for a fancy .dfn entry for this weapon.

Currently the 'set command doesen't work for either of these functions.

Also, expanding it to allow the user to adjust the weight and defense value of armor would be a great tool as well.

As always, thanks for your work!
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Note that NAME2, STR, HIDAMAGE, LODAMAGE, WEIGHT and DEFENSE can be set on items using the 'TWEAK command - though STR doesn't seem to subtract any points if negative, and DEFENSE doesn't seem to add to the armor rating. Not sure what's up with that.

NAME2 already exists in the SET command, just don't include the = in your command, so: 'SET NAME2 longsword of intellect.

I've added LODAMAGE #, HIDAMAGE # and WEIGHT # to the SET command and uploaded it to the CVS, but there doesn't seem to be code support for setting int/dex for an item through the JS engine right now, so can't add those.
-= Ho Eyo He Hum =-
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks Xuri!

If Tweak would have worked you didn't need to go through the effort of putting it on the 'set function, but thanks anyways.

I wonder if the str/int problem is similar to the DEF problem. This should probably be listed in the "bugs" forum.

My magic armor scripts basically take a base item and adds the DEF bonus to that item upon creations. Since adding DEF values dosen't do anything, my magic armor scripts are all broken.

If we could get the DEF, INT, and STR problems corrected it would save a lot of headaches I've had recently with magic/custom arms and armor.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

While I'm really just being lazy, can we get a formal list of exactly which new parameters need to be added to 'set. Either as part of this thread or as part of the "Missing parts of 'set command" bug report on the bug forum.

You list them, I'll add them (at least those that I can).
Scott
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Giwo, I'll go through the 'set.js and list what I can see as soon as I can.

It might be around september before I can post it, as my free-time access to the internet is limited while I'm at my summer internship.
Post Reply