this does the trick:
--------------------------------------------------------------------------
<script label="New quest">
var alwaysTag="quest";
var tid=story.findContainingTiddler(place);
tid=tid?tid.getAttribute('tiddler'):'';
var charTag=(tid).toLowerCase().replace(/ /g, "");
var p=prompt("Enter the quest name","");
if(!p)return
if(store.tiddlerExists(p)) {
if(!confirm(config.messages.overwriteWarning.format([p.toString()])))
return null;    }
var title=(p);
var tags=(alwaysTag+" "+charTag);
store.saveTiddler(
title,
title,
store.getTiddlerText('questTemplate'),
config.options.txtUserName,
new Date(),
tags);
story.displayTiddler(null,title);
</script>
---------------------------------------------------------

regards,
seba

On 25 sep., 09:13, Seba <[email protected]> wrote:
> Hi,
>
> I already posted regarding my character management tool for a game
> (for details please 
> seehttp://groups.google.com/group/tiddlywiki/browse_thread/thread/7dc641...)
> and now I published it for players to download and use 
> it:http://users.volja.net/adonis25/estiah.html.
>
> I have one problem though, as tiddlers are unique the one overwrites
> the old one if they have the same name without any warning. The
> warning is shown in the original tiddly, but not in mine.
>
> Is this due to my custom scripts for creating tiddlers and how to
> change it so that a warning appears?
>
> Thank you for your help.
>
> regards,
>
> seba

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to