Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Set Player Weapon _MyScript injection
New Topic New Poll Post Reply
Poster Message
superluminal
Level: Delver
Rank Points: 59
Registered: 05-26-2016
IP: Logged
icon Set Player Weapon _MyScript injection (0)  
Right now, Set Player Weapon is completely static. It doesn't allow parameter injections.

I don't like that. And I don't know why TSS wasn't shipped with this feature.

I wish MyScriptX could affect Set Player Weapon like so:
-2 = weapon off
-1 = weapon on
0 = Sword
1 = Pickaxe
2 = Spear
3 = Staff
4 = Dagger
5 = Caber

____________________________
spacelike

[Last edited by superluminal at 05-07-2017 07:15 PM]
05-07-2017 at 08:12 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 2323
Registered: 12-28-2004
IP: Logged
icon Re: Set Player Weapon _MyScript injection (0)  
The reason might be because you can already use Set Var with _Weapon variable. I am not sure we want to add this feature now simply because it might break existing holds which depended on this behavior not existing. That'd need to be checked first.

Other than that if we make this change it'd use the same values as _Weapon takes, I don't remember if they are the same or different from what you posted.

____________________________
I am a skelliopath.
05-07-2017 at 04:51 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
Nuntar
Level: Smitemaster
Avatar
Rank Points: 3235
Registered: 02-20-2007
IP: Logged
icon Re: Set Player Weapon _MyScript injection (0)  
You can't. There is no _Weapon, there's only _MyWeapon for changing an NPC's weapon.

As for the values, they are correct, except -2 is off, -1 is on, and there is no "default" since sword is default for all NPCs.

____________________________
50th Skywatcher
05-07-2017 at 05:13 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 2323
Registered: 12-28-2004
IP: Logged
icon Re: Set Player Weapon _MyScript injection (0)  
Huh. Well, that variable should definitely be added then!

____________________________
I am a skelliopath.
05-07-2017 at 06:03 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
superluminal
Level: Delver
Rank Points: 59
Registered: 05-26-2016
IP: Logged
icon Re: Set Player Weapon _MyScript injection (0)  
quote:
Nuntar wrote:
As for the values, they are correct, except -2 is off, -1 is on, and there is no "default" since sword is default for all NPCs.
What? THAT'S AMAZING! That fixes everything! (It fixes all my problems, at least.) That list should really, really be added to the DROD Help files -- I would never have meandered around the negatives if you didn't help me.

I updated the list.

____________________________
spacelike
05-07-2017 at 07:15 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Set Player Weapon _MyScript injection
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.