obj/items/card
number
card
name = "Blank Number"
icon = 'items_number.dmi'
icon_state = "XXX"
desc = "A Blank Number. It wont reveal itself until someone claims it."
suffix = "Number Card"
verb/Unlock_Numeron_Code()
set src in usr
set category = "Special"
Numeron_Code(usr)
return
Problem description:
So the code itself works just fine doing what it should be doing, but this obj is part of a game quest where there are 100 of them spawned on the server and players fight each other to collect all 100. The "Unlock_Numeron_Code()" is a command that is only usable when all 100 are collected and combines them into the prize. otherwise it just alerts the player how many obj are left.
The obj have their true name hidden until a player picks them up since each of them do something different and the goal is for the player to not know what they're getting and players are only allowed to pick up a set amount off the ground and have to fight for the rest.
The problem I'm having is that when a player has multiples of this obj and they use the "Unlock Numeron Code()" verb, the game makes the player choose one of the objs from a list first.
It doesn't impact the use of the function, it's just a bit clunky to use and I was wondering if there's a way I can prevent that.
But then the issue with this is that you would always have the verb before and after you have it in your contents, so you'll need to add the verb to the mob when they obtain the card and when they use the proc you'll have to take it away.
In case they already have the verb in their list 'verbs', you will want to use the operator |= instead of +=