more tutorials

Started by esper, Thu 25/08/2005 14:47:40

Previous topic - Next topic

esper

Where can I find more tutorials for AGS, especially for scripting? It looks like most of the ones listed on the AGS page are on dead servers, and the introductory ones that ARE on valid servers are only basic tutes. I'm interested in more on variables and data storing functions. And (sorry if this is already a thread, but I figured while I had the floor...) is there a NOT function anywhere? For example, you can have a conditional that says "If the player is currently in possession of the Coconut of Quendor then do this..." but is there a way to say "If he hasn't yet picked up the coconut, do this...?" Game Maker makes it easy, even if you are just point-and-click creating.... Next to the IF...THEN it has a little clickable box that says "NOT!" in five mile high letters of fire. Thanks in advance for any assistance rendered....
This Space Left Blank Intentionally.

monkey0506

From within the script (I don't use the interaction editor...there may be a way to do it from there, I don't know...) you could do something like:

if (player.InventoryQuantity[coconut_num] != 1) {
  /* stuff */
  }

Of course you could also use "< 1" in case the player can have multiple coconuts.

As for more advanced tutorials, I don't have any links (sorry) but there are some out there...

For now, I might suggest just skimming through the manual (help file)...

Sorry i could be of more help.

Khris

You could do the following:

Conditional - if player has inventory item
---stop running more commands
[Action1]
[Action2]
...

esper

Glorious. That is the simplest way of going around something I've ever seen...
This Space Left Blank Intentionally.

SMF spam blocked by CleanTalk