How can I make spell like "Magic Mirror"(in the spell expander plugin) ?
------------------
I'd say make a passive NPC that looks like the player, set him to move towards the player at all times, and then bind an NPC control event to the 'cast spell' action that adds the NPC where the player is. Then after the duration of the spell, have the NPC removed.
That's just my thought, Stark would have better advice, since he is the one that created the spell in the first place.
------------------
Surely you can't be serious!
But I am serious, and don't call me Shirley!
Quote
Originally posted by BryceCubed:
I'd say make a passive NPC that looks like the player, set him to move towards the player at all times, and then bind an NPC control event to the 'cast spell' action that adds the NPC where the player is. Then after the duration of the spell, have the NPC removed.
Very good.
There are only 2 things of note that differ with what you outlined above:
I used a timer instead of relying on a spell duration. There is a bug in the spell duration code where if you cast multiple spells with durations they get screwed up. So I created a timer and the spell calls the timer to begin counting. When the timer hits 0 then the NPC is removed.
For multiple castings I created different NPCs all of which look alike. Originally I just created the same NPC for each iteration of the spell, but I ran into a funky bug that only plagued Windows machines: if you load the exact same NPC multiple times and then attempt to remove them, the game crashes. I have no idea why but it does. Loading different NPCs solved this bug.
Quote
That's just my thought, Stark would have better advice, since he is the one that created the spell in the first place.
------------------
(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) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)
Quote
Originally posted by BryceCubed:
**I'd say make a passive NPC that looks like the player, set him to move towards the player at all times, and then bind an NPC control event to the 'cast spell' action that adds the NPC where the player is.
**
How can I create NPC to player coordinates?
------------------
KJK
-------------------------------
Karel
Johannes
Quote
Originally posted by KJK:
How can I create NPC to player coordinates?
Use the NPC_Control to load the NPC at the coordinates &&PlayerX;/&&PlayerY.;
------------------
(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) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)
Hey Stark, can you send me step by step tutorial from making magic mirror?
Here is my email address:
LeaperEX@jippii.fi
------------------
KJK
-------------------------------
Karel
Johannes Kaurila
Quote
Originally posted by KJK:
Hey Stark, can you send me step by step tutorial from making magic mirror?
Um, yeah. But it is going to look very similar to Bryce's answer above... he pretty much nailed it.
------------------
(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) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)
Quote
Originally posted by Stark Bledfast:
**Um, yeah. But it is going to look very similar to Bryce's answer above... he pretty much nailed it.
**
------------------
Surely you can't be serious!
But I am serious, and don't call me Shirley!
Quote
Originally posted by Stark Bledfast:
**Um, yeah. But it is going to look very similar to Bryce's answer above... he pretty much nailed it.
**
sorry, double post due to computer error. Bad computer error!
------------------
Surely you can't be serious!
But I am serious, and don't call me Shirley!
(This message has been edited by BryceCubed (edited 02-20-2003).)