View previous topic :: View next topic |
Author |
Message |
Mariel

Joined: 15 Oct 2008 Posts: 78 Location: In your dreams
|
Posted: Wed Jan 07, 2009 6:18 am Post subject: The counter stat...? |
|
|
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 |
|
 |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Wed Jan 07, 2009 6:25 am Post subject: |
|
|
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 |
|
 |
Mariel

Joined: 15 Oct 2008 Posts: 78 Location: In your dreams
|
Posted: Wed Jan 07, 2009 8:19 am Post subject: |
|
|
Ah, it works! Thank you very much! I did not realize that format was necessary. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sun Jan 11, 2009 2:37 am Post subject: |
|
|
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 |
|
 |
|