Welcome to the Builder Academy

Question Staff Command - Unveil

More
25 Aug 2016 16:05 #6140 by risin
Staff Command - Unveil was created by risin
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
25 Aug 2016 20:26 #6143 by thomas
Replied by thomas on 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.

More
26 Aug 2016 05:13 #6144 by risin
Replied by risin on 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.

More
26 Aug 2016 16:41 #6145 by risin
Replied by risin on 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.192 seconds