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

How to use Pick Hero

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Wed Jul 07, 2004 5:13 am    Post subject: How to use Pick Hero Reply with quote

How EXACTLY do you use pick hero?
Back to top
View user's profile Send private message
SilentAngel
The Angel of Silence




Joined: 16 Dec 2003
Posts: 122
Location: The comfiest chair in #CastleParadox

PostPosted: Wed Jul 07, 2004 6:49 pm    Post subject: Reply with quote

You use it in a script, and it brings up a box where you can choose a hero. When you've chosen a hero, it returns the slot of the party that you chose, for example "1", "0", etc, which in turn you can use with other commands.

If you want to see the hero picker in action, see my game (Hikari no Senshi - Inperiaru Taisen) where a couple of the items (namely the stat booster items) use the "pick hero" command.

Hope that answered your question....feel free to ask for clarification

_________________
Current Projects:
Hikari no Senshi - Inperiaru Taisen: ~10% Complete
http://www.castleparadox.com/forum/download.php?game=392

Stepmania Online Stats:

Next song to pass on Stepmania: Paranoia Survivor Max (Heavy)
Next song to pass on DDR: MaxX Unlimited(Standard)
Back to top
View user's profile Send private message
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Wed Jul 07, 2004 7:36 pm    Post subject: Reply with quote

Would this work:

Code:


pick hero
variable (i)
for (i, 0, 3) do(
if (herobyslot (i)==hero:beefzokbw........

Back to top
View user's profile Send private message
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Wed Jul 07, 2004 8:21 pm    Post subject: Reply with quote

No. You use pick hero within a conditional, and it returns the value. For example, let's say you wanted it to bring up a hero-picker box to choose a hero that will receive a stat bonus (taking an example from SA)
Code:

script, testpick, begin
variable (temp)
set variable (temp, pickhero)
if (temp == 0) then (#do stuff to give hero 0 the stat boost)
if (temp == 1) then (#do stuff to give hero 1 the stat boost)
#And so on...
end

_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Wed Jul 07, 2004 8:46 pm    Post subject: Reply with quote

I get it now!!!

Thanx

Edit: Now how would I use that to see if a specific hero was in the slot?
Back to top
View user's profile Send private message
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