Gamelist Review List Song List Watched Journals Forum IRC Gamelist Song List Review List Forum Articles IRC Log Out Add Game Edit Games Add Reviews Edit Reviews Add Songs Edit Songs Log Out Edit Games Edit Reviews Edit Songs Sign Up Log In My Journal My Game Journals Watched Journals All Journals Journal Settings All Journals About Us Staff FAQ
Castle Paradox
Title Bar
Log In Box
 
______  
[more]
    1) A
        Vikings Of Midgard by Fenrir-Lunaris
    2) A-
        Deleted Game by JSH357
        Sword of Jade: Parallel Dreams by RPGCreations
        Purgatory100% by Friend
        Trailblazers by Retrogamer
Contrary to popular belief, I'm NOT dead!

 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raekuul
Delicious!




Joined: 31 Mar 2004
Posts: 641
Location: Nowhere

PostPosted: Thu Nov 09, 2006 4:35 pm    Post subject: Contrary to popular belief, I'm NOT dead! Reply with quote

Modified

Code:
include,plotscr.hsd
include,colora.hsi

definescript(autonumber,writeEL,none)
definescript(1,afterbattlescript,none)
globalvariable(1,eventlocation)

#-- this first script is supposed to set the global "event location"
#-- to one tile above the hero.
script,writeEL,begin
#-- declare variable "hero y - 1"
variable(heroy-1)
#-- check current event location
readglobal(eventlocation)
#-- now check our location
heroy(me)
#-- check to see if hero is at top of map
if (heroy(me) >=1), then, begin
heroy-1:=(heroy(me)--1))
writeglobal(1,heroy--1)
end
end

_________________
A broken clock is still right twice a day.


Last edited by Raekuul on Mon Mar 17, 2008 10:34 am; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Thu Nov 09, 2006 4:39 pm    Post subject: Reply with quote

You don't need to declare globals if you never refer to them by name. In other words, you could change this
Code:
readglobal(1)
to this
Code:
readglobal(eventlocation)
if you uncommented the global variable declaration.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Nov 09, 2006 9:36 pm    Post subject: Reply with quote

In addition,

Code:
#-- check current event location
readglobal(1)
#-- now check our location
heroy(me)

This does nothing. What is the intent?

Code:
heroy-1:=(heroy(me)-1))

I think you have an extra closing parenthesis here? Also, write -- 1 instead of -1

Code:
heroy-1 := heroy(me) -- 1

_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Raekuul
Delicious!




Joined: 31 Mar 2004
Posts: 641
Location: Nowhere

PostPosted: Mon Mar 17, 2008 10:37 am    Post subject: Reply with quote

Code edited (finally), but I think I screwed it up again.
_________________
A broken clock is still right twice a day.
Back to top
View user's profile Send private message Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Mon Mar 17, 2008 12:50 pm    Post subject: Reply with quote

Yeah.

I'm not sure what you're trying to do, but readglobal(whatever) doesn't do anything. You'd have to use the value. For example, you might say something like--

set hero stat(who, stat:hp, read global(whatever))

--which would set some hero's HP to the value in global #whatever.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Mar 17, 2008 2:20 pm    Post subject: Reply with quote

????

Code:
include, plotscr.hsd
include, colora.hsi

globalvariable(1,eventlocation)

#-- this first script is supposed to set the global "event location"
#-- to one tile above the hero.
plotscript, writeEL, begin
  #-- check to see if hero is at top of map
  if (heroy(me) >= 1) then, begin
    eventlocation := heroy(me) -- 1
  end
end

_________________
"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
Page 1 of 1

 
You cannot 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


All games, songs, and images © their respective owners.
Terms of Service
©2008 Castle Paradox