Today words of wisdom will not be on how to create classes and races for (url="http://"http://www.ambrosiasw.com/games/pog/")PoG(/url) (which is quite simple, just create a plugin and put a class and/or race in it), but rather on how to modify the base stats of a player that just started a game using your plugin and selected your race/class.
It goes like this:
-
If you played PoG at least once, you know that the player starts in Fantrima, which is location "World_P10" (you could have found this yourself using the default plugin debug event)
-
Open the plugin options dialog. Create yourself a new global named something like "gb_xx_MyClassInit"
-
Create a new event.
-
Add a "Change Globals" to the main sequence. Make it that it puts the current player race/class in a global
-
Add a "End event" to the linked action list
-
Add a "Conditional" to the main action list, which will test: if the race/class of the player is NOT equal to yours OR if the "gb_xx_MyClassInit" is different than 0, you link to the end event action previously created.
-
Add several "Attribute Wizard" to the main action list to modify the stats the way you want for this race/class
-
Add a "Change globals" action that will set the "gb_xx_MyClassInit" variable to anything else than 0, let say "1"
-
Save the event.
-
Go to the plugin load calls dialog (the gear symbol at the far right of the toolbar) or through the project menu "Game plugin->plugin load calls..."
-
Select "World_P10" and your event in the popup menus.
-
Press the + button and close the dialog
I didn't test it myself but it should do the trick.
Now, if you want to make your plugin compatible with Trinity, follow these additional steps:
(I'm not sure if this will work, again, I didn't test it)
-
Create yourself a global variable with the name "gb_pg_PlayerClass"
-
Open the event you created above
-
At the end of your event, add a "Change globals" that set the above variable to something greater than 2 (ideally, set it at something like 15 or 100, just to be sure that there won't be any conflict in future version of Trinity - if any)
-
Save the event.
-
Re-open the plugin options panel and delete the "gb_pg_PlayerClass" global (this may sound strange but this is a cool hack that should do the trick)
Let me know if that helped you.
------------------
Dee Brown
Beenox inc. - (url="http://"http://www.beenox.com")www.beenox.com(/url) (check our new web site!)
(url="http://"http://www.AmbrosiaSW.com/games/coldstone/")Coldstone Game Engine(/url) / (url="http://"http://www.AmbrosiaSW.com/games/pog/")Pillars of Garendall(/url) developers
(This message has been edited by Dee (edited 02-08-2002).)