Staff Command - Unveil

  • risin
  • risin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 8 months ago #6140 by risin
risin created the topic: Staff Command - Unveil
I would like to add a command called "unveil" to my codebase, that would allow staff (builders namely) to "unveil" to a mortal level. I find that having to find a mob to "switch" to, to do testing, to be very cumbersome. Would anyone have experience with implementing a feature like this?

USAGE:

BuilderX is building out a trigger feature and wants to test it
BuilderX types in "unveil 28" to become a level 28 mortal
BuilderX likes the trigger and wants to return to their imm level they then type "unveil 32"

Again thank you for any and all help/advice!

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #6143 by thomas
thomas replied the topic: Staff Command - Unveil
We've had something similar in tba earlier. The commands are "set myname level 28", "restore myname", and then "cheat" to return to my own level.

github.com/tbamud/tbamud/blob/2f12752373...c/act.wizard.c#L1214 do_cheat() was once a longer switch, with several id's in it.

This is just one way of doing it - you might choose to make a new attribute on the player, "real_level" and allow changing the level if real_level >= level_immort.

Please Log in or Create an account to join the conversation.

  • risin
  • risin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 8 months ago #6144 by risin
risin replied the topic: Staff Command - Unveil
Im not sure that setup works anymore with the stock base

i34 500H 150M 82V 251G Exits:N> set risin level 28
Risin's level set to 28.

i34 500H 150M 82V 251G Exits:N> l
[40200] The Gates to Letchfort [ NOBITS ] [ Inside ]
Approaching the run of the mill iron gate, you can already smell the sweet
and charcoal scent of gunpowder.
Naz the Avatar of Magic (buildwalk) is standing here.

i34 500H 150M 82V 251G Exits:N> restore
Naz leaves north.

i34 500H 150M 82V 251G Exits:N> risin
Huh!?!

i34 500H 150M 82V 251G Exits:N> cheat
Huh!?!

Did you mean:
check
clear

i34 500H 150M 82V 251G Exits:N> restore risin
Huh!?!

i34 500H 150M 82V 251G Exits:N>

Please Log in or Create an account to join the conversation.

  • risin
  • risin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 8 months ago #6145 by risin
risin replied the topic: Staff Command - Unveil
So the actual stock usage for anyone interested is:

"set self level"

then you would use the

"return" command when you want to be restored :)
The following user(s) said Thank You: thomas

Please Log in or Create an account to join the conversation.

Time to create page: 0.971 seconds