Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

The counter stat...?

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Mariel




Joined: 15 Oct 2008
Posts: 78
Location: In your dreams

PostPosted: Wed Jan 07, 2009 6:18 am    Post subject: The counter stat...? Reply with quote

So, I'm trying my hand at plotscripting for the first time, been reading the dictionary and all the tutorials and such, and I came up with a little script that uses the Counter Rate stat. I'm just using a simple 'get hero stat(me,ctr,currentstat)' but when I try to compile, I get an error saying that 'ctr' is not the name of a stat, variable, etc... I checked the .hsi file and the stat is there and correctly named, and they are all in the same folder, so why can't it recognize that stat?
Back to top
View user's profile Send private message
NeoSpade
Of course!




Joined: 23 Sep 2008
Posts: 249
Location: Wales GB

PostPosted: Wed Jan 07, 2009 6:25 am    Post subject: Reply with quote

Here you go, heres where you went wrong, its an easy mistake to make (I do it all the time)

Code:

get hero stat (me,stat:ctr,currentstat)


you write it as stat:ctr, hope it helps.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mariel




Joined: 15 Oct 2008
Posts: 78
Location: In your dreams

PostPosted: Wed Jan 07, 2009 8:19 am    Post subject: Reply with quote

Ah, it works! Thank you very much! I did not realize that format was necessary.
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Jan 11, 2009 2:37 am    Post subject: Reply with quote

I made that mistake as well when I was learning to write scripts, and have seen several others as well. I guess the documentation needs to be improved.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group