RPTools.net

Discussion and Support

Skip to content

It is currently Fri Feb 23, 2018 5:37 pm 




Forum rules


Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.



Reply to topic  [ 3 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Sat Aug 22, 2009 4:07 am
Posts: 15
 Post subject: [1.4.1.7] [1.4.1.8] getName() calling setName()
PostPosted: Sun Oct 22, 2017 11:09 pm 
Tried on both versions, different computers.

with token impersonated and selected
[h: getname()]
returns
Function "setName" requires at least 1 parameters; 0 were provided
[h: getname("Test")]
returns no message but sets current token's name to Test


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8012
Location: Bay Area
 Post subject: Re: [1.4.1.7] [1.4.1.8] getName() calling setName()
PostPosted: Mon Oct 23, 2017 3:12 am 
Try using Wiki: getName() which gives you the correct output. getname may either something deprecated or java related, hence the confusing error message.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3842
Location: MD
 Post subject: Re: [1.4.1.7] [1.4.1.8] getName() calling setName()
PostPosted: Mon Oct 23, 2017 11:47 am 
bocotainin wrote:
Tried on both versions, different computers.

with token impersonated and selected
[h: getname()]
returns
Function "setName" requires at least 1 parameters; 0 were provided
[h: getname("Test")]
returns no message but sets current token's name to Test


Function names are one of the few places in MT where CASE matters. So make sure you capitalize the "N" in getName().

At any rate, you did find a bug. (Confirmed in 1.4.0.2 as well.)

This should be moved to the Bug Forums.

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman