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

MADSOFT's Script Issues
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Jul 28, 2008 2:17 am    Post subject: Reply with quote

Oh I thought you were complaining that they didn't count (as in, a bug).
They don't count because that's more useful behaviour: you can add other enemies to do fake battle scripting and still use alone attacks/spawning.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Mon Jul 28, 2008 5:55 pm    Post subject: Reply with quote

Ok, so, after testing my game, I realized that everything with this slimeboss battle is going the way I want it, except that the slimes he summons are always at the top part of the battle screen, behind the HP bars...
Is there a way to make them appear other places?
If so, please explain?

_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/


Last edited by MADSOFT Games on Thu Aug 21, 2008 5:02 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
LeRoy_Leo
Project manager
Class S Minstrel



Joined: 24 Sep 2003
Posts: 2683
Location: The dead-center of your brain!

PostPosted: Mon Jul 28, 2008 6:18 pm    Post subject: Reply with quote

When you place enemies in the battle formation, they appear where you place them. Therefore, what you have to do is place an enemy where you want his slimes to be summoned and then remove the graphic. Hopefully you have a blank enemy graphic to use.
_________________
Planning Project Blood Summons, an MMORPG which will incinerate all of the others with it's sheer brilliance...

---msw188 ---
"Seriously James, you keep rolling out the awesome like gingerbread men on a horror-movie assembly line. "
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Jul 28, 2008 6:28 pm    Post subject: Reply with quote

A blank enemy graphic isn't needed. You'll want to place slimes in the formation to get their position right and then delete them.

All battle slots have a position on the screen set, whether or not there is an enemy in them - unfortunately they store the upper left corner of the enemy graphics, so spawned enemies of different sizes will appear in different positions on screen when in the same slot!
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Mon Jul 28, 2008 6:42 pm    Post subject: Reply with quote

Awesome!
Thanks a lot guys! Razz
All this help is great!

_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/


Last edited by MADSOFT Games on Thu Aug 21, 2008 5:02 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Thu Aug 21, 2008 4:53 pm    Post subject: Reply with quote

Ok, like drizzle's thread, this has been renamed so that I don't have to start a new topic every time I have a script issue.
So, please, tell me what is wrong with this:

Code:
script, gateup, begin
suspend player
suspend hero walls
fade screen out (0,0,0)
wait (1)
put hero (me, ((hero X (me))*20), (((hero Y (me))*20)-2))
set tag ((tag:GATEUP), false)
set tag ((tag:GATEDOWN), true)
wait for hero
fade screen in
resume hero walls
resume player
end

I want the hero to teleport 2 tiles upwards when he activates this, but It only fades out and then fades back in without having moved him at all.
I thought maybe it's because of the wall in front of him, but I used "suspend hero walls" and it still doesn't work. Help?

_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Thu Aug 21, 2008 9:20 pm    Post subject: Reply with quote

There are a couple problems here. First of all, to subtract things you need to write THING -- THING (note the two minus signs).

However, the main issue is your placement of the subtraction. The line should look like:

...((heroy(me)--2)*20)

because you want to move up two tiles, not two pixels. Also, there is no need for suspending hero walls, just as you originally thought.
_________________
My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161

This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com
Back to top
View user's profile Send private message Visit poster's website
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Thu Aug 21, 2008 9:22 pm    Post subject: Reply with quote

Whoa, Genius. It's odd I didn't notice that myself.
Well, thank you very much kind sir ^^

_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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