View previous topic :: View next topic |
Author |
Message |
Dan the Man Entertainment
Joined: 31 May 2003 Posts: 204
|
Posted: Wed Jul 07, 2004 5:13 am Post subject: How to use Pick Hero |
|
|
How EXACTLY do you use pick hero? |
|
Back to top |
|
 |
SilentAngel The Angel of Silence

Joined: 16 Dec 2003 Posts: 122 Location: The comfiest chair in #CastleParadox
|
Posted: Wed Jul 07, 2004 6:49 pm Post subject: |
|
|
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 |
|
 |
Dan the Man Entertainment
Joined: 31 May 2003 Posts: 204
|
Posted: Wed Jul 07, 2004 7:36 pm Post subject: |
|
|
Would this work:
Code: |
pick hero
variable (i)
for (i, 0, 3) do(
if (herobyslot (i)==hero:beefzokbw........
|
|
|
Back to top |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Wed Jul 07, 2004 8:21 pm Post subject: |
|
|
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 |
|
 |
Dan the Man Entertainment
Joined: 31 May 2003 Posts: 204
|
Posted: Wed Jul 07, 2004 8:46 pm Post subject: |
|
|
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 |
|
 |
|