Casting Spells

Hello --

What procedure does the Player go through in order to cast a spell?

I know how to make a spell and to add a spell into a Player's spellbook. And I know that the Player must have enough magic points to cast. But nowhere can I find how the Player actually casts a spell. (I didn't know that the Player uses x and z to block and hit until I read it on this board.) I would think that c would cast, but it doesn't.

I'm doing something wrong I think, but can't figure out how, exactly, the Player casts a spell while playing the game. Does the Player need to equip an item that holds a spell in order to cast?

Thanks!

------------------
-- Debra
Danillitphil Productions

I believe the "standard" way for the player to cast a spell is to call an event that contains an Engine Call of type "Open player's spell dialog" - this will bring up the spellbook window for the player to select which spell to cast.

------------------
I don't know what I'm talking about.
Oh no, here comes another learning experience.
(url="http://"http://homepage.mac.com/glennfield/ColdstoneBugs.html")Coldstone 1.0.1 Bug List(/url) - last update 10/10/2002
(url="http://"http://www.ambrosiasw.com/webboard/Forum48/HTML/001547.html")Stark Bledfast's Coldstone Debugging 101(/url)

Quote

Originally posted by Glenn:
I believe the "standard" way for the player to cast a spell is to call an event that contains an Engine Call of type "Open player's spell dialog" - this will bring up the spellbook window for the player to select which spell to cast.

And, if you want the player to press 'c' to open the spell book, then creake a keydown that calles the event that Glenn mentioned.

In PoG's Trinity add-on, Beenox has made 2 keydowns for the conjurer class in order to use magic effectively: 'c' and 'v'.

The 'v' keydown does what Glenn mentioned; it calls an event that uses the event object "Engine call" of the type "Open player's spell dialog." The player can then choose the spell to cast and it fires off.

The 'c' keydown is actually a "recast" event. It allows the player to recast the last spell used so they don't have to re-open the spell book. Again this keydown calls an event which uses the event object "Engine call," but this time you switch the type to the "Last Spell cast" type(I'm not sure exactly what the name it since I don't have CGE in front of me).

Good luck Debra.

------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url)

Thank you Glenn and Stark!

If I discover that I'm actually creating and manipulating spells wrong rather than how the Player uses it and I can't figure it out, I'll post again. I did have the Player open the Spell Book and hit "cast" and nothing happened. So I'll read everything again.

Thanks again!

------------------
-- Debra
Danillitphil Productions